8000 bpo-5028: fix doc bug for tokenize (GH-11683) · python/cpython@1e36f75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e36f75

Browse files
andrewncmiss-islington
authored andcommitted
1 parent 1b69c09 commit 1e36f75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/library/tokenize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The primary entry point is a :term:`generator`:
3939
column where the token begins in the source; a 2-tuple ``(erow, ecol)`` of
4040
ints specifying the row and column where the token ends in the source; and
4141
the line on which the token was found. The line passed (the last tuple item)
42-
is the *logical* line; continuation lines are included. The 5 tuple is
42+
is the *physical* line; continuation lines are included. The 5 tuple is
4343
returned as a :term:`named tuple` with the field names:
4444
``type string start end line``.
4545

Lib/lib2to3/pgen2/tokenize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def generate_tokens(readline):
346346
column where the token begins in the source; a 2-tuple (erow, ecol) of
347347
ints specifying the row and column where the token ends in the source;
348348
and the line on which the token was found. The line passed is the
349-
logical line; continuation lines are included.
349+
physical line; continuation lines are included.
350350
"""
351351
lnum = parenlev = continued = 0
352352
contstr, needcont = '', 0

Lib/tokenize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def tokenize(readline):
415415
column where the token begins in the source; a 2-tuple (erow, ecol) of
416416
ints specifying the row and column where the token ends in the source;
417417
and the line on which the token was found. The line passed is the
418-
logical line; continuation lines are included.
418+
physical line; continuation lines are included.
419419
420420
The first token sequence will always be an ENCODING token
421421
which tells you which encoding was used to decode the bytes stream.

0 commit comments

Comments
 (0)
0