1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Debian: Degrade traceback gracefully without codeop
python3.X-minimal includes traceback but not codeop.
We don't need suggestions in python3.X-minimal.
Forwarded: not-needed
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -6,7 +6,6 @@
import sys
import textwrap
import warnings
-import codeop
import keyword
import tokenize
import io
@@ -1279,6 +1278,7 @@
def _find_keyword_typos(self):
assert self._is_syntax_error
+ import codeop
try:
import _suggestions
except ImportError:
|