Don't add names that start with _
This commit is contained in:
parent
5f2aa7113d
commit
b5fa1cb855
|
@ -154,8 +154,11 @@ def readmodule(module, path = []):
|
|||
# only add a name if not
|
||||
# already there (to mimic what
|
||||
# Python does internally)
|
||||
# also don't add names that
|
||||
# start with _
|
||||
for n in d.keys():
|
||||
if not dict.has_key(n):
|
||||
if n[0] != '_' and \
|
||||
not dict.has_key(n):
|
||||
dict[n] = d[n]
|
||||
continue
|
||||
if is_class.match(line) >= 0:
|
||||
|
|
Loading…
Reference in New Issue