Handle 3.6 BUILD_CONST_KEYMAP

This commit is contained in:
rocky
2017-01-15 11:10:13 -05:00
parent 8dc23e2cdc
commit 9c49b5d54b
2 changed files with 9 additions and 1 deletions

View File

@@ -127,6 +127,8 @@ class Scanner3(Scanner):
if is_pypy:
varargs_ops.add(self.opc.CALL_METHOD)
self.varargs_ops = frozenset(varargs_ops)
# FIXME: remove the above in favor of:
# self.varargs_ops = frozenset(self.opc.hasvargs)
def opName(self, offset):
return self.opc.opname[self.code[offset]]