Correct hacky version number

This commit is contained in:
rocky 2017-12-02 09:53:05 -05:00
parent a7005f6a77
commit 5872caee54

View File

@ -1041,7 +1041,7 @@ class Scanner2(Scanner):
# or:
# RETURN_VALUE POP_TOP .. POP_TOP END_FINALLY
skip_come_from = False
if self.version <= 2.1:
if self.version <= 2.5:
skip_come_from = (code[offset+3] == self.opc.END_FINALLY or
(code[offset+3] == self.opc.POP_TOP
and code[offset+4] == self.opc.END_FINALLY))