Skip to content
Prev Previous commit
Next Next commit
Restore patch
  • Loading branch information
ShaharNaveh committed Feb 3, 2026
commit 0911855b382b19bcfcc19b7b36f44b54ce365ad0
8 changes: 8 additions & 0 deletions Lib/_compat_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@
else:
PYTHON2_EXCEPTIONS += ("WindowsError",)

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

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

Expand Down
Loading