Comment 3 for bug 741381

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

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))

I opened the following bug upstream:

https://github.com/jcrocholl/pep8/issues/63