Staging
v0.5.1
https://github.com/python/cpython
Revision 970188c2d792133e2273924a987e0542659a676f authored by Miss Islington (bot) on 16 January 2020, 00:00:32 UTC, committed by GitHub on 16 January 2020, 00:00:32 UTC

The previous double colon was wrongly place directly after Therefore.
Which produced a block without syntax highlighting. This fixes it
by separating the double colon from the text. As a result, sphinx now
properly highlights the python code.

https://bugs.python.org/issue39348
(cherry picked from commit fad8b5674c66d9e00bb788e30adddb0c256c787b)

Co-authored-by: Oz N Tiram <oz.tiram@noris.de>
1 parent 74b95b6
Raw File
Tip revision: 970188c2d792133e2273924a987e0542659a676f authored by Miss Islington (bot) on 16 January 2020, 00:00:32 UTC
bpo-39348: Fix code highlight for the SOCK_NONBLOCK example (GH-18018)
Tip revision: 970188c
ast.h
#ifndef Py_AST_H
#define Py_AST_H
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(int) PyAST_Validate(mod_ty);
PyAPI_FUNC(mod_ty) PyAST_FromNode(
    const node *n,
    PyCompilerFlags *flags,
    const char *filename,       /* decoded from the filesystem encoding */
    PyArena *arena);
PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
    const node *n,
    PyCompilerFlags *flags,
    PyObject *filename,
    PyArena *arena);

#ifndef Py_LIMITED_API

/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);

#endif /* !Py_LIMITED_API */

#ifdef __cplusplus
}
#endif
#endif /* !Py_AST_H */
back to top