Commit 6acf301f authored by Guido van Rossum's avatar Guido van Rossum

Don't add names that start with _

parent f8f454b0
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment