summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pyclbr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index f6f5bb9..a8a51af 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -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: