[Python-checkins] bpo-32050: Fix -x option documentation (GH-4475) (#4477)

Victor Stinner webhook-mailer at python.org
Mon Nov 20 11:16:13 EST 2017


https://github.com/python/cpython/commit/60a376cf0023d1070329d0e861a5596637ff3275
commit: 60a376cf0023d1070329d0e861a5596637ff3275
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-11-20T08:16:08-08:00
summary:

bpo-32050: Fix -x option documentation (GH-4475) (#4477)

The line number in correct when using the -x option: Py_Main() uses
ungetc() to not skip the first newline character.
(cherry picked from commit c5a2071586f735d2a61d1756e7011cfbb6ce86c9)

files:
M Doc/using/cmdline.rst

diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 40a06b9adc0..9ffb7149631 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -387,8 +387,6 @@ Miscellaneous options
    Skip the first line of the source, allowing use of non-Unix forms of
    ``#!cmd``.  This is intended for a DOS specific hack only.
 
-   .. note:: The line numbers in error messages will be off by one.
-
 
 .. cmdoption:: -X
 



More information about the Python-checkins mailing list