How to get TabError?
Fredrik Lundh
fredrik at pythonware.com
Mon Mar 28 02:14:09 EST 2005
"Mr. Magoo" wrote:
>> $ python -t test.py
>> test.py: inconsistent use of tabs and spaces in indentation
>> hello
>> goodbye
>
> On more question. When using py_compile from with a script, is there any
> way to force the -t flag?
if you want to check for tab problems from inside a script, use the
tabnanny module:
http://effbot.org/librarybook/tabnanny.htm
</F>
More information about the Python-list
mailing list