]> granicus.if.org Git - python/commitdiff
Suppress warning print statements about modules not found, they are
authorGuido van Rossum <guido@python.org>
Wed, 16 Jun 1999 12:28:12 +0000 (12:28 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Jun 1999 12:28:12 +0000 (12:28 +0000)
confusing to end users of IDEs.

Lib/pyclbr.py

index 9e8af3575642f5f886c574c719bdad62fe6fff6a..de3fedce114d90b253c36b763c63d3363be72d20 100644 (file)
@@ -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