Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
f07ccdde
Commit
f07ccdde
authored
7 years ago
by
Elizaveta Shashkova
1
Browse files
Options
Download
Email Patches
Plain Diff
Updates from PyDev: Fix find_module signature
parent
4dd2efe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/helpers/pydev/pydev_ipython/qt_loaders.py
+3
-3
python/helpers/pydev/pydev_ipython/qt_loaders.py
with
3 additions
and
3 deletions
+3
-3
python/helpers/pydev/pydev_ipython/qt_loaders.py
+
3
-
3
View file @
f07ccdde
...
...
@@ -27,16 +27,16 @@ class ImportDenier(object):
"""
def
__init__
(
self
):
self
.
__forbidden
=
None
self
.
__forbidden
=
set
()
def
forbid
(
self
,
module_name
):
sys
.
modules
.
pop
(
module_name
,
None
)
self
.
__forbidden
=
module_name
self
.
__forbidden
.
add
(
module_name
)
def
find_module
(
self
,
fullname
,
path
=
None
):
if
path
:
return
if
fullname
==
self
.
__forbidden
:
if
fullname
in
self
.
__forbidden
:
return
self
def
load_module
(
self
,
fullname
):
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
1f3d3202
·
2 years ago
mentioned in commit
1f3d3202
mentioned in commit 1f3d32027982c2f456906e44fda5e68756415a2a
Toggle commit list
Write
Preview
Supports
Markdown
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