You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
2.4 compatibility
This commit is contained in:
@@ -182,7 +182,10 @@ class Token: # Python 2.4 can't have empty ()
|
||||
# This is an instruction with an extended arg.
|
||||
# For things that compare against offsets, we generally want the
|
||||
# later offset.
|
||||
return offset_2 if prefer_last else offset_1
|
||||
if prefer_last:
|
||||
return offset_2
|
||||
else:
|
||||
return offset_1
|
||||
else:
|
||||
# Probably a "COME_FROM"-type offset, where the second number
|
||||
# is just a count, and not really an offset.
|
||||
|
Reference in New Issue
Block a user