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 ** Changed in: pep8 (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/741381 Title: pep8 crashes, integrated with emacs when in python-mode To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/741381/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs