Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 8 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 2 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.