]> granicus.if.org Git - python/commitdiff
bpo-32050: Fix -x option documentation (GH-4475) (#4477)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Nov 2017 16:16:08 +0000 (08:16 -0800)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 20 Nov 2017 16:16:08 +0000 (08:16 -0800)
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)

Doc/using/cmdline.rst

index 40a06b9adc06ef165badce57912e1b27261eac33..9ffb714963169a6414d2765636de5cf3ffbb3f17 100644 (file)
@@ -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