Fix 3.5, 3.6 while true if/break bug

This commit is contained in:
rocky
2017-01-08 15:54:49 -05:00
parent 66518baed0
commit 3f40c16587
6 changed files with 18 additions and 3 deletions

View File

@@ -226,7 +226,7 @@ class Scanner(object):
for given opcode <op>.
"""
if op < self.opc.HAVE_ARGUMENT:
return 1
return 2 if self.version >= 3.6 else 1
else:
return 2 if self.version >= 3.6 else 3