Add filename attr to SyntaxError type (#1126)

This commit is contained in:
James Saryerwinnie
2017-03-31 15:24:42 -07:00
committed by Jelle Zijlstra
parent 4395f1ef16
commit c4ceae98db
2 changed files with 2 additions and 0 deletions

View File

@@ -920,6 +920,7 @@ class SyntaxError(StandardError):
lineno = ... # type: int
offset = ... # type: int
text = ... # type: str
filename = ... # type: str
class IndentationError(SyntaxError): ...
class TabError(IndentationError): ...
class SystemError(StandardError): ...

View File

@@ -956,6 +956,7 @@ class SyntaxError(Exception):
lineno = ... # type: int
offset = ... # type: int
text = ... # type: str
filename = ... # type: str
class IndentationError(SyntaxError): ...
class TabError(IndentationError): ...
class SystemError(Exception): ...