From: Xiang Zhang Date: Wed, 22 Mar 2017 07:22:44 +0000 (+0800) Subject: fix function name in tabnanny documentation (GH-764) X-Git-Tag: v2.7.14rc1~239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dae5482c9c2e5b048274715215262a1a404bb546;p=python fix function name in tabnanny documentation (GH-764) --- diff --git a/Doc/library/tabnanny.rst b/Doc/library/tabnanny.rst index f447f1207e..f241cef4a5 100644 --- a/Doc/library/tabnanny.rst +++ b/Doc/library/tabnanny.rst @@ -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 diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index 76665ac91a..e48b72a229 100755 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py @@ -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):