You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Debugging smutz caused verify failures
This commit is contained in:
BIN
test/bytecode_3.5/11_return_val.pyc
Normal file
BIN
test/bytecode_3.5/11_return_val.pyc
Normal file
Binary file not shown.
@@ -11,3 +11,8 @@ def _formatparam(param, value=None, quote=True):
|
||||
return '%s=%s' % (param, value)
|
||||
else:
|
||||
return param
|
||||
|
||||
# python 2.7 SimpleXMLRPCServer.py
|
||||
# Bug was turning return into "pass"
|
||||
def system_methodSignature(seflf, method_name):
|
||||
return 'signatures not supported'
|
||||
|
@@ -2070,7 +2070,7 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
if tokens[-1].type == 'RETURN_VALUE':
|
||||
# Should we also check for returning None?
|
||||
if tokens[-2].type == 'LOAD_CONST':
|
||||
if True or isTopLevel:
|
||||
if isTopLevel:
|
||||
del tokens[-2:]
|
||||
else:
|
||||
tokens.append(Token('RETURN_LAST'))
|
||||
|
Reference in New Issue
Block a user