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
2e7c8328
Commit
2e7c8328
authored
May 11, 2004
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SF item #876278: Unbounded recursion in modulefinder.
Already backported to release23-maint.
parent
112f8f4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/modulefinder.py
Lib/modulefinder.py
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/modulefinder.py
View file @
2e7c8328
...
...
@@ -245,6 +245,9 @@ class ModuleFinder:
if
self
.
badmodules
.
has_key
(
fqname
):
self
.
msgout
(
3
,
"import_module -> None"
)
return
None
if
parent
and
parent
.
__path__
is
None
:
self
.
msgout
(
3
,
"import_module -> None"
)
return
None
try
:
fp
,
pathname
,
stuff
=
self
.
find_module
(
partname
,
parent
and
parent
.
__path__
,
parent
)
...
...
@@ -392,6 +395,7 @@ class ModuleFinder:
def
find_module
(
self
,
name
,
path
,
parent
=
None
):
if
parent
is
not
None
:
# assert path is not None
fullname
=
parent
.
__name__
+
'.'
+
name
else
:
fullname
=
name
...
...
Misc/NEWS
View file @
2e7c8328
...
...
@@ -306,6 +306,8 @@ Extension modules
Library
-------
-
Bug
#
876278
:
Unbounded
recursion
in
modulefinder
-
Bug
#
780300
:
Swap
public
and
system
ID
in
LexicalHandler
.
startDTD
.
Applications
relying
on
the
wrong
order
need
to
be
corrected
.
...
...
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