Fix bug in 3.0 name module detection

This commit is contained in:
rocky 2020-02-10 08:58:48 -05:00
parent ebad4e2a9a
commit 946d74ad36

View File

@ -2283,6 +2283,8 @@ class SourceWalker(GenericASTTraversal, object):
if first_stmt == "store_locals":
if self.hide_internal:
del ast[0]
if ast[0] == "sstmt":
ast[0] = ast[0][0]
first_stmt = ast[0]
except:
pass