Commit 9f612f9c authored by Guido van Rossum's avatar Guido van Rossum

Suppress warning print statements about modules not found, they are

confusing to end users of IDEs.
parent 7bb11d68
...@@ -297,7 +297,8 @@ def readmodule_ex(module, path=[], inpackage=0): ...@@ -297,7 +297,8 @@ def readmodule_ex(module, path=[], inpackage=0):
# recursively read the imported module # recursively read the imported module
d = readmodule(n, path, inpackage) d = readmodule(n, path, inpackage)
except: except:
print 'module', n, 'not found' ##print 'module', n, 'not found'
pass
elif m.start("ImportFrom") >= 0: elif m.start("ImportFrom") >= 0:
# from module import stuff # from module import stuff
...@@ -307,7 +308,7 @@ def readmodule_ex(module, path=[], inpackage=0): ...@@ -307,7 +308,7 @@ def readmodule_ex(module, path=[], inpackage=0):
# recursively read the imported module # recursively read the imported module
d = readmodule(mod, path, inpackage) d = readmodule(mod, path, inpackage)
except: except:
print 'module', mod, 'not found' ##print 'module', mod, 'not found'
continue continue
# add any classes that were defined in the # add any classes that were defined in the
# imported module to our name space if they # imported module to our name space if they
......
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