[Python-checkins] cpython (3.5): Issue #25977: Fix typos in Lib/tokenize.py
berker.peksag
python-checkins at python.org
Tue Dec 29 18:42:47 EST 2015
https://hg.python.org/cpython/rev/9057e3857119
changeset: 99718:9057e3857119
branch: 3.5
parent: 99714:4fa8c0c69ee9
user: Berker Peksag <berker.peksag at gmail.com>
date: Wed Dec 30 01:41:58 2015 +0200
summary:
Issue #25977: Fix typos in Lib/tokenize.py
Patch by John Walker.
files:
Lib/tokenize.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -328,8 +328,8 @@
Round-trip invariant for full input:
Untokenized source will match input source exactly
- Round-trip invariant for limited intput:
- # Output bytes will tokenize the back to the input
+ Round-trip invariant for limited input:
+ # Output bytes will tokenize back to the input
t1 = [tok[:2] for tok in tokenize(f.readline)]
newcode = untokenize(t1)
readline = BytesIO(newcode).readline
@@ -465,10 +465,10 @@
def tokenize(readline):
"""
- The tokenize() generator requires one argment, readline, which
+ The tokenize() generator requires one argument, readline, which
must be a callable object which provides the same interface as the
readline() method of built-in file objects. Each call to the function
- should return one line of input as bytes. Alternately, readline
+ should return one line of input as bytes. Alternatively, readline
can be a callable function terminating with StopIteration:
readline = open(myfile, 'rb').__next__ # Example of alternate readline
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list