11 |
11 |
12 Warning: The API provided by this module is likely to change in future |
12 Warning: The API provided by this module is likely to change in future |
13 releases; such changes may not be backward compatible. |
13 releases; such changes may not be backward compatible. |
14 |
14 |
15 This is a modified version to make the original tabnanny better suitable |
15 This is a modified version to make the original tabnanny better suitable |
16 for being called from within the eric5 IDE. |
16 for being called from within the eric6 IDE. |
17 |
17 |
18 @exception ValueError The tokenize module is too old. |
18 @exception ValueError The tokenize module is too old. |
19 """ |
19 """ |
20 |
20 |
21 from __future__ import unicode_literals |
21 from __future__ import unicode_literals |
26 # XXX The API needs to undergo changes however; the current code is too |
26 # XXX The API needs to undergo changes however; the current code is too |
27 # XXX script-like. This will be addressed later. |
27 # XXX script-like. This will be addressed later. |
28 |
28 |
29 # |
29 # |
30 # This is a modified version to make the original tabnanny better suitable |
30 # This is a modified version to make the original tabnanny better suitable |
31 # for being called from within the eric5 IDE. The modifications are as |
31 # for being called from within the eric6 IDE. The modifications are as |
32 # follows: |
32 # follows: |
33 # |
33 # |
34 # - there is no main function anymore |
34 # - there is no main function anymore |
35 # - check function has been modified to only accept a filename and return |
35 # - check function has been modified to only accept a filename and return |
36 # a tuple indicating status (1 = an error was found), the filename, the |
36 # a tuple indicating status (1 = an error was found), the filename, the |