summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-03-22 08:03:27 (GMT)
committerGitHub <noreply@github.com>2017-03-22 08:03:27 (GMT)
commitcb4beb6b89f992b7967ca3e7471d292789385b48 (patch)
treeaa1c796fbfd773fc925fc77532fedb45c0da957d
parented512cba78af211da4d83cbb7cc533c39176f374 (diff)
downloadcpython-cb4beb6b89f992b7967ca3e7471d292789385b48.zip
cpython-cb4beb6b89f992b7967ca3e7471d292789385b48.tar.gz
cpython-cb4beb6b89f992b7967ca3e7471d292789385b48.tar.bz2
fix function name in tabnanny documentation (GH-763)
-rw-r--r--Doc/library/tabnanny.rst8
-rwxr-xr-xLib/tabnanny.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/tabnanny.rst b/Doc/library/tabnanny.rst
index 1edb0fb..dfe688a 100644
--- a/Doc/library/tabnanny.rst
+++ b/Doc/library/tabnanny.rst
@@ -48,14 +48,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 46e0f56..bfb670c 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):