File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,8 @@ def untokenize(iterable):
328
328
Round-trip invariant for full input:
329
329
Untokenized source will match input source exactly
330
330
331
- Round-trip invariant for limited intput :
332
- # Output bytes will tokenize the back to the input
331
+ Round-trip invariant for limited input :
332
+ # Output bytes will tokenize back to the input
333
333
t1 = [tok[:2] for tok in tokenize(f.readline)]
334
334
newcode = untokenize(t1)
335
335
readline = BytesIO(newcode).readline
@@ -465,10 +465,10 @@ def open(filename):
465
465
466
466
def tokenize (readline ):
467
467
"""
468
- The tokenize() generator requires one argment , readline, which
468
+ The tokenize() generator requires one argument , readline, which
469
469
must be a callable object which provides the same interface as the
470
470
readline() method of built-in file objects. Each call to the function
471
- should return one line of input as bytes. Alternately , readline
471
+ should return one line of input as bytes. Alternatively , readline
472
472
can be a callable function terminating with StopIteration:
473
473
readline = open(myfile, 'rb').__next__ # Example of alternate readline
474
474
You can’t perform that action at this time.
0 commit comments