Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bcc796

Browse files
committed
#19620: Fix typo in docstring (noticed by Christopher Welborn).
1 parent 97fc2ba commit 4bcc796

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/lib2to3/pgen2/tokenize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _get_normal_name(orig_enc):
252252
def detect_encoding(readline):
253253
"""
254254
The detect_encoding() function is used to detect the encoding that should
255-
be used to decode a Python source file. It requires one argment, readline,
255+
be used to decode a Python source file. It requires one argument, readline,
256256
in the same way as the tokenize() generator.
257257
258258
It will call readline a maximum of twice, and return the encoding used
@@ -343,7 +343,7 @@ def untokenize(iterable):
343343

344344
def generate_tokens(readline):
345345
"""
346-
The generate_tokens() generator requires one argment, readline, which
346+
The generate_tokens() generator requires one argument, readline, which
347347
must be a callable object which provides the same interface as the
348348
readline() method of built-in file objects. Each call to the function
349349
should return one line of input as a string. Alternately, readline

Lib/tokenize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _get_normal_name(orig_enc):
333333
def detect_encoding(readline):
334334
"""
335335
The detect_encoding() function is used to detect the encoding that should
336-
be used to decode a Python source file. It requires one argment, readline,
336+
be used to decode a Python source file. It requires one argument, readline,
337337
in the same way as the tokenize() generator.
338338
339339
It will call readline a maximum of twice, and return the encoding used

0 commit comments

Comments
 (0)