You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
MAKE_FUNCTION_FLAGS can be a simpler tuple
This commit is contained in:
@@ -131,12 +131,8 @@ class Scanner3(Scanner):
|
|||||||
if self.version >= 3.6:
|
if self.version >= 3.6:
|
||||||
varargs_ops.add(self.opc.BUILD_CONST_KEY_MAP)
|
varargs_ops.add(self.opc.BUILD_CONST_KEY_MAP)
|
||||||
# Below is in bit order, "default = bit 0, closure = bit 3
|
# Below is in bit order, "default = bit 0, closure = bit 3
|
||||||
self.MAKE_FUNCTION_FLAGS = (
|
self.MAKE_FUNCTION_FLAGS = tuple("""
|
||||||
("default", 'D'),
|
default keyword-only annotation closure""".split())
|
||||||
("keyword-only", "K"),
|
|
||||||
("annotation", "A"),
|
|
||||||
("closure", "C")
|
|
||||||
)
|
|
||||||
|
|
||||||
self.varargs_ops = frozenset(varargs_ops)
|
self.varargs_ops = frozenset(varargs_ops)
|
||||||
# FIXME: remove the above in favor of:
|
# FIXME: remove the above in favor of:
|
||||||
|
Reference in New Issue
Block a user