Clean up usage of InvalidSyntax exception

This commit is contained in:
Ian Cordasco 2016-08-05 06:39:08 -05:00
parent cddf982a0a
commit f434e9adf5
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
2 changed files with 9 additions and 4 deletions

View file

@ -247,7 +247,7 @@ class FileProcessor(object):
# course, I'm going to be unsurprised to be proven wrong at a later
# date.
except tokenize.TokenError as exc:
raise exceptions.InvalidSyntax(str(exc), exception=exc)
raise exceptions.InvalidSyntax(exception=exc)
def line_for(self, line_number):
"""Retrieve the physical line at the specified line number."""