You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pep8 should catch this TokenError and report it as another problem, not crash. With the input file of just 'a(', pep8 crashes as such (v1.0.1):
Traceback (most recent call last):
File "/usr/bin/pep8", line 9, in
load_entry_point('pep8==1.0.1', 'console_scripts', 'pep8')()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1348, in _main
runner(path)
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1023, in input_file
errors = Checker(filename).check_all()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 949, in check_all
for token in tokenize.generate_tokens(self.readline_check_physical):
File "/usr/lib/python2.7/tokenize.py", line 357, in generate_tokens
raise TokenError, ("EOF in multi-line statement", (lnum, 0))
tokenize.TokenError: ('EOF in multi-line statement', (2, 0))
The text was updated successfully, but these errors were encountered:
pep8 should catch this TokenError and report it as another problem, not crash. With the input file of just 'a(', pep8 crashes as such (v1.0.1):
Traceback (most recent call last):
File "/usr/bin/pep8", line 9, in
load_entry_point('pep8==1.0.1', 'console_scripts', 'pep8')()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1348, in _main
runner(path)
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1023, in input_file
errors = Checker(filename).check_all()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 949, in check_all
for token in tokenize.generate_tokens(self.readline_check_physical):
File "/usr/lib/python2.7/tokenize.py", line 357, in generate_tokens
raise TokenError, ("EOF in multi-line statement", (lnum, 0))
tokenize.TokenError: ('EOF in multi-line statement', (2, 0))
The text was updated successfully, but these errors were encountered: