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

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