From f9aa2410d1784a3fe6a31db65a645956c604a942 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 3 Nov 2022 12:20:10 -0400 Subject: [PATCH] More float -> tuple version corrections --- uncompyle6/scanners/scanner30.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uncompyle6/scanners/scanner30.py b/uncompyle6/scanners/scanner30.py index 129b25a5..9a715364 100644 --- a/uncompyle6/scanners/scanner30.py +++ b/uncompyle6/scanners/scanner30.py @@ -378,7 +378,7 @@ class Scanner30(Scanner3): if self.is_pypy and code[jump_prev] == self.opc.COMPARE_OP: if self.opc.cmp_op[code[jump_prev + 1]] == "exception-match": return - if self.version >= 3.5: + if self.version >= (3, 5): # Python 3.5 may remove as dead code a JUMP # instruction after a RETURN_VALUE. So we check # based on seeing SETUP_EXCEPT various places. @@ -399,7 +399,7 @@ class Scanner30(Scanner3): pass pass if code[pre_rtarget] == self.opc.RETURN_VALUE: - if self.version == 3.0: + if self.version == (3, 0): next_op = rtarget if code[next_op] == self.opc.POP_TOP: next_op = rtarget