mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
fix function name in tabnanny documentation (GH-762)
This commit is contained in:
parent
af839fe2fe
commit
72c51136c6
2 changed files with 5 additions and 5 deletions
|
@ -48,14 +48,14 @@ described below.
|
||||||
|
|
||||||
.. exception:: NannyNag
|
.. 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`.
|
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
|
This function is used by :func:`check` to process tokens generated by the
|
||||||
:func:`tokenize.tokenize`.
|
:mod:`tokenize` module.
|
||||||
|
|
||||||
.. XXX document errprint, format_witnesses, Whitespace, check_equal, indents,
|
.. XXX document errprint, format_witnesses, Whitespace, check_equal, indents,
|
||||||
reset_globals
|
reset_globals
|
||||||
|
|
|
@ -59,7 +59,7 @@ def main():
|
||||||
|
|
||||||
class NannyNag(Exception):
|
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().
|
Captured and handled in check().
|
||||||
"""
|
"""
|
||||||
def __init__(self, lineno, msg, line):
|
def __init__(self, lineno, msg, line):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue