Remove BaseException.with_traceback in py2 (#697)

This method doesn't exist in Python 2; it was added in Python 3. See https://docs.python.org/2/library/exceptions.html#exceptions.BaseException versus https://docs.python.org/3/library/exceptions.html#BaseException.with_traceback.
This commit is contained in:
Jelle Zijlstra
2016-11-23 03:42:59 -08:00
committed by Jukka Lehtosalo
parent 9bc07e7b9d
commit 7ac78b163d

View File

@@ -836,7 +836,6 @@ class BaseException:
args = ... # type: Tuple[Any, ...]
message = ... # type: str
def __init__(self, *args: Any) -> None: ...
def with_traceback(self, tb: Any) -> BaseException: ...
class GeneratorExit(BaseException): ...
class KeyboardInterrupt(BaseException): ...
class SystemExit(BaseException):