Skip to content

Commit

Permalink
Fix a python 2 incompatibility with picklemagic: super() does not wor…
Browse files Browse the repository at this point in the history
…k in py2.
  • Loading branch information
CensoredUsername committed Aug 17, 2024
1 parent 9e5bf8c commit d6e6af2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion decompiler/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ def save_global(self, obj, name=None, pack=None):
self.memoize(obj)
return

super().save_global(obj, name)
if PY2:
pickle.Pickler.save_global(self, obj, name)
else:
super().save_global(self, obj, name)

# the main API

Expand Down
2 changes: 1 addition & 1 deletion un.rpyc/corrupy
Submodule corrupy updated 2 files
+1 −1 codegen.py
+4 −1 picklemagic.py

0 comments on commit d6e6af2

Please sign in to comment.