bugfix: imported module should not be considered as variable

This commit is contained in:
debugtalk
2017-09-01 19:01:34 +08:00
parent 83ee357ade
commit 77047f3671
2 changed files with 18 additions and 0 deletions

View File

@@ -263,6 +263,9 @@ def is_variable(tup):
if callable(item):
return False
if isinstance(item, types.ModuleType):
return False
if name.startswith("__"):
return False