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
03f7a703
Commit
03f7a703
authored
Aug 13, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nick Mathewson: Make sure the recursion is handled properly.
This is part of SF patch #440292.
parent
6943a29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/pyclbr.py
Lib/pyclbr.py
+4
-4
No files found.
Lib/pyclbr.py
View file @
03f7a703
...
...
@@ -166,8 +166,8 @@ def readmodule_ex(module, path=[], inpackage=0):
# Dotted module name
package
=
module
[:
i
].
strip
()
submodule
=
module
[
i
+
1
:].
strip
()
parent
=
readmodule
(
package
,
path
,
inpackage
)
child
=
readmodule
(
submodule
,
parent
[
'__path__'
],
1
)
parent
=
readmodule
_ex
(
package
,
path
,
inpackage
)
child
=
readmodule
_ex
(
submodule
,
parent
[
'__path__'
],
1
)
return
child
if
_modules
.
has_key
(
module
):
...
...
@@ -295,7 +295,7 @@ def readmodule_ex(module, path=[], inpackage=0):
n
=
n
.
strip
()
try
:
# recursively read the imported module
d
=
readmodule
(
n
,
path
,
inpackage
)
d
=
readmodule
_ex
(
n
,
path
,
inpackage
)
except
:
##print 'module', n, 'not found'
pass
...
...
@@ -306,7 +306,7 @@ def readmodule_ex(module, path=[], inpackage=0):
names
=
m
.
group
(
"ImportFromList"
).
split
(
','
)
try
:
# recursively read the imported module
d
=
readmodule
(
mod
,
path
,
inpackage
)
d
=
readmodule
_ex
(
mod
,
path
,
inpackage
)
except
:
##print 'module', mod, 'not found'
continue
...
...
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