]> granicus.if.org Git - python/commitdiff
bpo-5028: fix doc bug for tokenize (GH-11683)
authorAndrew Carr <andrewnc@users.noreply.github.com>
Thu, 30 May 2019 19:31:51 +0000 (13:31 -0600)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 30 May 2019 19:31:51 +0000 (12:31 -0700)
https://bugs.python.org/issue5028

Doc/library/tokenize.rst
Lib/lib2to3/pgen2/tokenize.py
Lib/tokenize.py

index 111289c767f35c3e7be2fbb2f8571eb08c8ce79a..c89d3d4b082f5ec59bca24586e6f2f11f11ec97a 100644 (file)
@@ -39,7 +39,7 @@ The primary entry point is a :term:`generator`:
    column where the token begins in the source; a 2-tuple ``(erow, ecol)`` of
    ints specifying the row and column where the token ends in the source; and
    the line on which the token was found. The line passed (the last tuple item)
-   is the *logical* line; continuation lines are included.  The 5 tuple is
+   is the *physical* line; continuation lines are included.  The 5 tuple is
    returned as a :term:`named tuple` with the field names:
    ``type string start end line``.
 
index 279d322971da991a0a00e157a8b0a0e75f2bdfb7..0f9fde3fb0d5f66a04dfb0b933995bea864c2d6f 100644 (file)
@@ -346,7 +346,7 @@ def generate_tokens(readline):
     column where the token begins in the source; a 2-tuple (erow, ecol) of
     ints specifying the row and column where the token ends in the source;
     and the line on which the token was found. The line passed is the
-    logical line; continuation lines are included.
+    physical line; continuation lines are included.
     """
     lnum = parenlev = continued = 0
     contstr, needcont = '', 0
index 0f9d5dd554d530050413dbc133a95d5c5d74bb39..738fb71d188b478c417c3a697eb97d4072a09305 100644 (file)
@@ -415,7 +415,7 @@ def tokenize(readline):
     column where the token begins in the source; a 2-tuple (erow, ecol) of
     ints specifying the row and column where the token ends in the source;
     and the line on which the token was found.  The line passed is the
-    logical line; continuation lines are included.
+    physical line; continuation lines are included.
 
     The first token sequence will always be an ENCODING token
     which tells you which encoding was used to decode the bytes stream.