Skip to content

Commit 924d1e1

Browse files
committed
Remove unnecessary python importlib import
1 parent 15f4501 commit 924d1e1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

overrides/pythonpath/httptoolkit_intercept.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
try:
2-
import importlib
3-
if not hasattr(importlib, 'reload'):
4-
raise Exception('wrong importlib')
5-
except:
6-
import imp
7-
importlib = imp
8-
91
def preload_real_module(*module_names):
102
# Re-importing the real module at the top level of an override fails after deleting it from
113
# sys.modules['httplib'] in Python 2. Some interesting issues there ofc, but doing this

0 commit comments

Comments
 (0)