pep8 should not allow this exception from some other library to bubble up through it. I've cofirmed that PEP8 throws an exception with this script:
a(
Traceback (most recent call last):
File "/usr/bin/pep8", line 9, in <module>
load_entry_point('pep8==0.6.1', 'console_scripts', 'pep8')()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1346, in _main
runner(path)
File "/usr/lib/python2.7/dist-packages/pep8.py", line 1027, in input_file
errors = Checker(filename).check_all()
File "/usr/lib/python2.7/dist-packages/pep8.py", line 953, 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))
pep8 should not allow this exception from some other library to bubble up through it. I've cofirmed that PEP8 throws an exception with this script:
a(
Traceback (most recent call last): entry_point( 'pep8== 0.6.1', 'console_scripts', 'pep8')() python2. 7/dist- packages/ pep8.py" , line 1346, in _main python2. 7/dist- packages/ pep8.py" , line 1027, in input_file filename) .check_ all() python2. 7/dist- packages/ pep8.py" , line 953, in check_all generate_ tokens( self.readline_ check_physical) : python2. 7/tokenize. py", line 357, in generate_tokens TokenError: ('EOF in multi-line statement', (2, 0))
File "/usr/bin/pep8", line 9, in <module>
load_
File "/usr/lib/
runner(path)
File "/usr/lib/
errors = Checker(
File "/usr/lib/
for token in tokenize.
File "/usr/lib/
raise TokenError, ("EOF in multi-line statement", (lnum, 0))
tokenize.
I opened the following bug upstream:
https:/ /github. com/jcrocholl/ pep8/issues/ 63