Commit 75b6cf87 authored by Jelle Zijlstra's avatar Jelle Zijlstra Committed by Xiang Zhang

fix function name in tabnanny documentation (GH-759)

parent d7fa6b25
......@@ -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
......
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment