problem with tabnanny

M

m3tr0

Hi to all,

tabnanny module seems not to work (at least for me)
Please write this two lines of code in a file (i called
it test.py)

#---------8<---- test.py -------------

if 1:
print "error"

#---------8<------ end test.py -------

If I try

$ python test.py
File "/home/pier/test.py", line 2
print "error"
^
IndentationError: expected an indented block

and this is correct. But the following
$ python /usr/lib/python2.2/tabnanny.py -v test.py
'/home/pier/test.py': Clean bill of health.

for tabnanny it's correct!?
I've tried this also with python 2.3 compiled from source
with the same results.

Any ideas
(Pease cc the mail to m3tr0 at dei.unipd.it)

Best regards

Pier Carteri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top