A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003028.html below:

[Python-Dev] python -t gets confused?

[Python-Dev] python -t gets confused?Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Sun, 2 Apr 2000 01:30:46 +0200 (CEST)
The tab/space checking code in the tokenizer seems to get confused
by the recently checked in test_pyexpat.py

With python -t or -tt, there are inconsistency reports at places where
there doesn't seem to be one. (tabnanny seems to be confused too, btw :)

./python -tt Lib/test/test_pyexpat.py
  File "Lib/test/test_pyexpat.py", line 13
    print 'Start element:\n\t', name, attrs
                                          ^
SyntaxError: inconsistent use of tabs and spaces in indentation

Thus, "make test" reports a failure on test_pyexpat due to a syntax error,
instead of a missing optional feature (expat not compiled in).

I'm not an expert of the tokenizer code, so someone might want to look
at it and tell us what's going on. Without -t or -tt, the code runs fine.

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4