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

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


https://github.com/python/cpython/commit/c5a2071586f735d2a61d1756e7011cfbb6ce86c9
commit: c5a2071586f735d2a61d1756e7011cfbb6ce86c9
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-20T08:08:03-08:00
summary:

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

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

files:
M Doc/using/cmdline.rst

diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index bf27c1e2b56..b2269302cb4 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -388,8 +388,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