You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Correct last commit
This commit is contained in:
@@ -2356,6 +2356,7 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
|
|
||||||
# The function defining a class normally returns locals().
|
# The function defining a class normally returns locals().
|
||||||
# We don't want this to show up in the source, so remove the node.
|
# We don't want this to show up in the source, so remove the node.
|
||||||
|
if len(ast):
|
||||||
if ast == "stmts" and ast[-1] == "sstmt":
|
if ast == "stmts" and ast[-1] == "sstmt":
|
||||||
return_locals_parent = ast[-1]
|
return_locals_parent = ast[-1]
|
||||||
parent_index = 0
|
parent_index = 0
|
||||||
@@ -2366,6 +2367,8 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
if return_locals == RETURN_LOCALS:
|
if return_locals == RETURN_LOCALS:
|
||||||
if self.hide_internal:
|
if self.hide_internal:
|
||||||
del return_locals_parent[parent_index]
|
del return_locals_parent[parent_index]
|
||||||
|
pass
|
||||||
|
pass
|
||||||
# else:
|
# else:
|
||||||
# print stmt[-1]
|
# print stmt[-1]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user