pocket-lint does not catch unindent exception during tokenize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PEP 8 |
New
|
Undecided
|
Unassigned |
Bug Description
Pocketlint reports an indentation error just fine, but an unindentation error is an uncaught exception.
Traceback (most recent call last):
File "<string>", line 24, in <module>
File "<string>", line 34, in check
File "/usr/lib/
PythonCheck
File "/usr/lib/
self.
File "/usr/lib/
pep8.
File "/usr/lib/
for token in tokenize.
File "/usr/lib/
("<tokenize>", lnum, pos, line))
File "<tokenize>", line 9
x = one
^
IndentationError: unindent does not match any outer indentation level
You can trigger this with the following code:
class Foo:
def one():
>>>>>>>>>>>>>>>>>
pass
x = one
affects: | pocket-lint → pep8 |