Skip to content
Next Next commit
Update _compat_pickle.py from 3.14.2
  • Loading branch information
ShaharNaveh committed Feb 3, 2026
commit 9706cec09da38fc28f8b4cf90c769c36421c7660
10 changes: 1 addition & 9 deletions Lib/_compat_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
'tkMessageBox': 'tkinter.messagebox',
'ScrolledText': 'tkinter.scrolledtext',
'Tkconstants': 'tkinter.constants',
'Tix': 'tkinter.tix',
'ttk': 'tkinter.ttk',
'Tkinter': 'tkinter',
'markupbase': '_markupbase',
Expand Down Expand Up @@ -148,14 +147,6 @@
else:
PYTHON2_EXCEPTIONS += ("WindowsError",)

# NOTE: RUSTPYTHON exceptions
try:
JitError
except NameError:
pass
else:
PYTHON2_EXCEPTIONS += ("JitError",)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably we still need this for --features jit


for excname in PYTHON2_EXCEPTIONS:
NAME_MAPPING[("exceptions", excname)] = ("builtins", excname)

Expand Down Expand Up @@ -257,3 +248,4 @@

for excname in PYTHON3_IMPORTERROR_EXCEPTIONS:
REVERSE_NAME_MAPPING[('builtins', excname)] = ('exceptions', 'ImportError')
del excname
Loading