Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9f612f9c
Commit
9f612f9c
authored
Jun 16, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress warning print statements about modules not found, they are
confusing to end users of IDEs.
parent
7bb11d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/pyclbr.py
Lib/pyclbr.py
+3
-2
No files found.
Lib/pyclbr.py
View file @
9f612f9c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment