]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix rendering of null character in ast.rst (GH-116080) (#116161)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Feb 2024 22:42:31 +0000 (23:42 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Feb 2024 22:42:31 +0000 (22:42 +0000)
Fix rendering of null character in ast.rst (GH-116080)
(cherry picked from commit c04a981ff414b101736688773dbe24f824ca32ce)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Doc/library/ast.rst

index 837d70be0a3200f8e5157b3affd1555b091e2720..35242878c129de791c0f34c6fb02835932bbc29f 100644 (file)
@@ -2045,7 +2045,7 @@ and classes for traversing abstract syntax trees:
    ``await`` as variable names.  The lowest supported version is
    ``(3, 4)``; the highest is ``sys.version_info[0:2]``.
 
-   If source contains a null character ('\0'), :exc:`ValueError` is raised.
+   If source contains a null character (``\0``), :exc:`ValueError` is raised.
 
    .. warning::
       Note that successfully parsing source code into an AST object doesn't