diff options
author | Victor Stinner <vstinner@python.org> | 2020-12-23 18:16:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 18:16:56 (GMT) |
commit | a12491681f08a33abcca843f5150330740c91111 (patch) | |
tree | 0548d800982a420ed2804834b827c443cdcf5d05 /Misc | |
parent | 41b223d29cdfeb1f222c12c3abaccc3bc128f5e7 (diff) | |
download | cpython-a12491681f08a33abcca843f5150330740c91111.zip cpython-a12491681f08a33abcca843f5150330740c91111.tar.gz cpython-a12491681f08a33abcca843f5150330740c91111.tar.bz2 |
bpo-32381: pymain_run_command() uses PyCF_IGNORE_COOKIE (GH-23724)
The coding cookie (ex: "# coding: latin1") is now ignored in the
command passed to the -c command line option.
Since pymain_run_command() uses UTF-8, pass PyCF_IGNORE_COOKIE
compiler flag to the parser.
pymain_run_python() no longer propages compiler flags between
function calls.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-12-15-18-43-43.bpo-32381.3tIofL.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-12-15-18-43-43.bpo-32381.3tIofL.rst b/Misc/NEWS.d/next/Core and Builtins/2020-12-15-18-43-43.bpo-32381.3tIofL.rst new file mode 100644 index 0000000..fc8ea82 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-12-15-18-43-43.bpo-32381.3tIofL.rst @@ -0,0 +1,2 @@ +The coding cookie (ex: ``# coding: latin1``) is now ignored in the command +passed to the :option:`-c` command line option. Patch by Victor Stinner. |