Skip to content

[3.6] fix function name in tabnanny documentation #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/library/tabnanny.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Lib/tabnanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down