Skip to content

Commit 931abc5

Browse files
committed
self.opc.version -> self.opc.version_tuple
The next release of xdis will no longer support self.opc.version (a float value which doesn't work in the presense of 3.10 and above)
1 parent 2b3cd69 commit 931abc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uncompyle6/scanners/tok.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2016-2021 by Rocky Bernstein
1+
# Copyright (c) 2016-2021, 2023 by Rocky Bernstein
22
# Copyright (c) 2000-2002 by hartmut Goebel <[email protected]>
33
# Copyright (c) 1999 John Aycock
44
#
@@ -180,7 +180,7 @@ def format(self, line_prefix="", token_num=None):
180180
elif name == "LOAD_ASSERT":
181181
return "%s%s %s" % (prefix, offset_opname, pattr)
182182
elif self.op in self.opc.NAME_OPS:
183-
if self.opc.version >= 3.0:
183+
if self.opc.version_tuple >= (3, 0):
184184
return "%s%s%s %s" % (prefix, offset_opname, argstr, self.attr)
185185
elif name == "EXTENDED_ARG":
186186
return "%s%s%s 0x%x << %s = %s" % (

0 commit comments

Comments
 (0)