summaryrefslogtreecommitdiff
path: root/Lib/pyclbr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-16 12:28:12 +0000
committerGuido van Rossum <guido@python.org>1999-06-16 12:28:12 +0000
commitd32893718fa62bec3915804d840758b9e631eb7f (patch)
tree08bdc2f4601a9e45142feae6ce26c31217b115e0 /Lib/pyclbr.py
parentc7d78a1526c44fa2a912b02775a0680ad32c5e06 (diff)
downloadcpython-d32893718fa62bec3915804d840758b9e631eb7f.tar.gz
Suppress warning print statements about modules not found, they are
confusing to end users of IDEs.
Diffstat (limited to 'Lib/pyclbr.py')
-rw-r--r--Lib/pyclbr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index 9e8af35756..de3fedce11 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -297,7 +297,8 @@ def readmodule_ex(module, path=[], inpackage=0):
# recursively read the imported module
d = readmodule(n, path, inpackage)
except:
- print 'module', n, 'not found'
+ ##print 'module', n, 'not found'
+ pass
elif m.start("ImportFrom") >= 0:
# from module import stuff
@@ -307,7 +308,7 @@ def readmodule_ex(module, path=[], inpackage=0):
# recursively read the imported module
d = readmodule(mod, path, inpackage)
except:
- print 'module', mod, 'not found'
+ ##print 'module', mod, 'not found'
continue
# add any classes that were defined in the
# imported module to our name space if they