Don't add names that start with _

This commit is contained in:
Guido van Rossum 1996-10-10 16:00:28 +00:00
parent 5f2aa7113d
commit b5fa1cb855

View file

@ -154,8 +154,11 @@ def readmodule(module, path = []):
# only add a name if not # only add a name if not
# already there (to mimic what # already there (to mimic what
# Python does internally) # Python does internally)
# also don't add names that
# start with _
for n in d.keys(): for n in d.keys():
if not dict.has_key(n): if n[0] != '_' and \
not dict.has_key(n):
dict[n] = d[n] dict[n] = d[n]
continue continue
if is_class.match(line) >= 0: if is_class.match(line) >= 0: