summaryrefslogtreecommitdiffstats
path: root/Lib/pyclbr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-16 12:28:12 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-16 12:28:12 (GMT)
commit9f612f9c5a1fb1a35cbe360bfbc3d134da268445 (patch)
tree45660defa1a9ff923753591912ba66d43f1ae344 /Lib/pyclbr.py
parent7bb11d68bf12010a9a6d5074cc0f05e46d1cf517 (diff)
downloadcpython-9f612f9c5a1fb1a35cbe360bfbc3d134da268445.zip
cpython-9f612f9c5a1fb1a35cbe360bfbc3d134da268445.tar.gz
cpython-9f612f9c5a1fb1a35cbe360bfbc3d134da268445.tar.bz2
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 9e8af35..de3fedc 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