You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Python 2/3 compatibility bug
This commit is contained in:
@@ -32,6 +32,11 @@ from uncompyle6.scanner import Token, parse_fn_counts
|
|||||||
# Get all the opcodes into globals
|
# Get all the opcodes into globals
|
||||||
import xdis.opcodes.opcode_33 as op3
|
import xdis.opcodes.opcode_33 as op3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
from uncompyle6 import PYTHON3
|
||||||
|
if PYTHON3:
|
||||||
|
intern = sys.intern
|
||||||
|
|
||||||
globals().update(op3.opmap)
|
globals().update(op3.opmap)
|
||||||
|
|
||||||
# POP_JUMP_IF is used by verify
|
# POP_JUMP_IF is used by verify
|
||||||
|
Reference in New Issue
Block a user