Make AssertionRewritingrHook use imp_find_module
This commit is contained in:
parent
885b8a3b4c
commit
eec7081b8d
|
@ -298,7 +298,7 @@ class AssertionRewritingHook(object):
|
||||||
|
|
||||||
def is_package(self, name):
|
def is_package(self, name):
|
||||||
try:
|
try:
|
||||||
fd, fn, desc = imp.find_module(name)
|
fd, fn, desc = self._imp_find_module(name)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return False
|
return False
|
||||||
if fd is not None:
|
if fd is not None:
|
||||||
|
|
Loading…
Reference in New Issue