mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Suppress warning print statements about modules not found, they are
confusing to end users of IDEs.
This commit is contained in:
parent
7bb11d68bf
commit
9f612f9c5a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue