2.4 compatibility

This commit is contained in:
rocky
2020-01-22 06:25:58 -05:00
parent 80b0d4284b
commit b12893f343

View File

@@ -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.