You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Get ready for release 3.6.3
This commit is contained in:
@@ -21,8 +21,6 @@ from uncompyle6 import PYTHON3
|
||||
if PYTHON3:
|
||||
intern = sys.intern
|
||||
|
||||
class Token: # Python 2.4 can't have empty ()
|
||||
|
||||
def off2int(offset, prefer_last=True):
|
||||
if isinstance(offset, int):
|
||||
return offset
|
||||
@@ -38,12 +36,18 @@ def off2int(offset, prefer_last=True):
|
||||
# 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
|
||||
pass
|
||||
else:
|
||||
# Probably a "COME_FROM"-type offset, where the second number
|
||||
# is just a count, and not really an offset.
|
||||
return offset_1
|
||||
|
||||
class Token: # Python 2.4 can't have empty ()
|
||||
|
||||
"""
|
||||
Class representing a byte-code instruction.
|
||||
|
||||
|
@@ -12,4 +12,4 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# This file is suitable for sourcing inside bash as
|
||||
# well as importing into Python
|
||||
VERSION="3.6.2" # noqa
|
||||
VERSION="3.6.3" # noqa
|
||||
|
Reference in New Issue
Block a user