]> granicus.if.org Git - python/commitdiff
bpo-32050: Fix -x option documentation (#4423)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 20 Nov 2017 15:08:44 +0000 (07:08 -0800)
committerGitHub <noreply@github.com>
Mon, 20 Nov 2017 15:08:44 +0000 (07:08 -0800)
The line number in correct when using the -x option: Py_Main() uses
ungetc() to not skip the first newline character.

Doc/using/cmdline.rst

index c35bb34f93421a718963db5da45588c54b05dda3..c27ec4f3e634a5cdc4fc87b49fa1e333b360ee7c 100644 (file)
@@ -411,8 +411,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:: -3
 
    Warn about Python 3.x possible incompatibilities by emitting a