bugfix: private property should be _single_leading_underscore

This commit is contained in:
debugtalk
2017-09-04 11:35:02 +08:00
parent 082a2711e9
commit 1f44b1997d

View File

@@ -261,12 +261,15 @@ def is_variable(tup):
"""
name, item = tup
if callable(item):
# function or class
return False
if isinstance(item, types.ModuleType):
# imported module
return False
if name.startswith("__"):
if name.startswith("_"):
# private property
return False
return True