Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/tabnanny.html
Дата изменения: Thu Nov 5 13:46:17 2015
Дата индексирования: Sun Apr 10 23:13:17 2016
Кодировка:

Поисковые слова: rigel
Python: module tabnanny
 
 
tabnanny (version 6)
index
/usr/local/Python-2.5/lib/python2.5/tabnanny.py
Module Docs

The Tab Nanny despises ambiguous indentation.  She knows no mercy.
 
tabnanny -- Detection of ambiguous indentation
 
For the time being this module is intended to be called as a script.
However it is possible to import it into an IDE and use the function
check() described below.
 
Warning: The API provided by this module is likely to change in future
releases; such changes may not be backward compatible.

 
Modules
       
getopt
os
sys
tokenize

 
Classes
       
exceptions.Exception(exceptions.BaseException)
NannyNag

 
class NannyNag(exceptions.Exception)
    Raised by tokeneater() if detecting an ambiguous indent.
Captured and handled in check().
 
 
Method resolution order:
NannyNag
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, lineno, msg, line)
get_line(self)
get_lineno(self)
get_msg(self)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x2096c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
Functions
       
check(file)
check(file_or_dir)
 
If file_or_dir is a directory and not a symbolic link, then recursively
descend the directory tree named by file_or_dir, checking all .py files
along the way. If file_or_dir is an ordinary Python source file, it is
checked for whitespace related problems. The diagnostic messages are
written to standard output using the print statement.
process_tokens(tokens)

 
Data
        __all__ = ['check', 'NannyNag', 'process_tokens']
__version__ = '6'