Debugging smutz caused verify failures

This commit is contained in:
rocky
2016-07-13 09:53:51 -04:00
parent bc86b73cf0
commit 772c67fcd7
3 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@@ -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'

View File

@@ -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'))