You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
More 3.6 lambda handling
This commit is contained in:
Binary file not shown.
@@ -9,3 +9,12 @@ def __init__(self, msg = None, digestmod = None):
|
||||
def bug():
|
||||
def register(cls, func=None):
|
||||
return lambda f: register(cls, f)
|
||||
|
||||
# From Python 3.6 configparser.py
|
||||
def items(self, d, section=5, raw=False, vars=None):
|
||||
if vars:
|
||||
for key, value in vars.items():
|
||||
d[self.optionxform(key)] = value
|
||||
d = lambda option: self._interpolation.before_get(self,
|
||||
section, option, d[option], d)
|
||||
return
|
||||
|
@@ -896,7 +896,7 @@ class Python3Parser(PythonParser):
|
||||
else:
|
||||
rule = ('mklambda ::= %s%s%s' %
|
||||
('load_closure ' * closure,
|
||||
'BUILD_TUPLE_2 LOAD_LAMBDA LOAD_CONST ',
|
||||
'LOAD_LAMBDA LOAD_CONST ',
|
||||
opname))
|
||||
self.add_unique_rule(rule, opname, token.attr, customize)
|
||||
|
||||
|
Reference in New Issue
Block a user