]> granicus.if.org Git - python/commitdiff
#19620: Fix typo in docstring (noticed by Christopher Welborn).
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Nov 2013 03:14:51 +0000 (05:14 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Nov 2013 03:14:51 +0000 (05:14 +0200)
Lib/lib2to3/pgen2/tokenize.py
Lib/tokenize.py

index f6e0284c2f5837e8d81cc60b078ac36047ed65da..a2ba96d78e3ce8b5dbf836595b270ac8e32c1842 100644 (file)
@@ -252,7 +252,7 @@ def _get_normal_name(orig_enc):
 def detect_encoding(readline):
     """
     The detect_encoding() function is used to detect the encoding that should
-    be used to decode a Python source file. It requires one argment, readline,
+    be used to decode a Python source file. It requires one argument, readline,
     in the same way as the tokenize() generator.
 
     It will call readline a maximum of twice, and return the encoding used
@@ -343,7 +343,7 @@ def untokenize(iterable):
 
 def generate_tokens(readline):
     """
-    The generate_tokens() generator requires one argment, readline, which
+    The generate_tokens() 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 a string.  Alternately, readline
index ca7b07493cfe0b30979b172f225bee8b5a814e33..db02134ab561a8e598acbd8ae3a24be53bb14457 100644 (file)
@@ -263,7 +263,7 @@ def untokenize(iterable):
 
 def generate_tokens(readline):
     """
-    The generate_tokens() generator requires one argment, readline, which
+    The generate_tokens() 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 a string.  Alternately, readline