From 7ac78b163d255251c9fee3179a932abe05927d1f Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 23 Nov 2016 03:42:59 -0800 Subject: [PATCH] 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. --- stdlib/2/__builtin__.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 064b651cd..121fe7de3 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -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):