From: Ezio Melotti Date: Mon, 25 Nov 2013 03:14:51 +0000 (+0200) Subject: #19620: Fix typo in docstring (noticed by Christopher Welborn). X-Git-Tag: v3.4.0b2~504^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bcc796acc17f8ab7eeaa3f7faa6a61135b2c090;p=thirdparty%2FPython%2Fcpython.git #19620: Fix typo in docstring (noticed by Christopher Welborn). --- diff --git a/Lib/lib2to3/pgen2/tokenize.py b/Lib/lib2to3/pgen2/tokenize.py index 83656fc19f44..b7c646129cd1 100644 --- a/Lib/lib2to3/pgen2/tokenize.py +++ b/Lib/lib2to3/pgen2/tokenize.py @@ -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 diff --git a/Lib/tokenize.py b/Lib/tokenize.py index f1e61d8ad591..d0609e85451e 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -333,7 +333,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