Fix rendering of null character in ast.rst (#116080)

This commit is contained in:
Shantanu 2024-02-29 14:09:06 -08:00 committed by GitHub
parent fa1d675309
commit c04a981ff4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2193,7 +2193,7 @@ and classes for traversing abstract syntax trees:
is no guarantee that the parse (or success of the parse) is the same as is no guarantee that the parse (or success of the parse) is the same as
when run on the Python version corresponding to ``feature_version``. when run on the Python version corresponding to ``feature_version``.
If source contains a null character ('\0'), :exc:`ValueError` is raised. If source contains a null character (``\0``), :exc:`ValueError` is raised.
.. warning:: .. warning::
Note that successfully parsing source code into an AST object doesn't Note that successfully parsing source code into an AST object doesn't