]> granicus.if.org Git - python/commitdiff
fix function name in tabnanny documentation (GH-764)
authorXiang Zhang <angwerzx@126.com>
Wed, 22 Mar 2017 07:22:44 +0000 (15:22 +0800)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2017 07:22:44 +0000 (15:22 +0800)
Doc/library/tabnanny.rst
Lib/tabnanny.py

index f447f1207ebe87d0b7ce27702397c3f2196cedf9..f241cef4a577122fa731befdc19baa033a3134b6 100644 (file)
@@ -47,14 +47,14 @@ described below.
 
 .. exception:: NannyNag
 
-   Raised by :func:`tokeneater` if detecting an ambiguous indent. Captured and
+   Raised by :func:`process_tokens` if detecting an ambiguous indent. Captured and
    handled in :func:`check`.
 
 
-.. function:: tokeneater(type, token, start, end, line)
+.. function:: process_tokens(tokens)
 
-   This function is used by :func:`check` as a callback parameter to the function
-   :func:`tokenize.tokenize`.
+   This function is used by :func:`check` to process tokens generated by the
+   :mod:`tokenize` module.
 
 .. XXX document errprint, format_witnesses, Whitespace, check_equal, indents,
    reset_globals
index 76665ac91a01d290f2771cb9ad6a9d15021f671c..e48b72a229149534c6f9aabe55f2579375ae0661 100755 (executable)
@@ -59,7 +59,7 @@ def main():
 
 class NannyNag(Exception):
     """
-    Raised by tokeneater() if detecting an ambiguous indent.
+    Raised by process_tokens() if detecting an ambiguous indent.
     Captured and handled in check().
     """
     def __init__(self, lineno, msg, line):