Make AssertionRewritingrHook use imp_find_module

This commit is contained in:
Bruno Oliveira 2018-09-03 10:18:25 -03:00
parent 885b8a3b4c
commit eec7081b8d
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class AssertionRewritingHook(object):
def is_package(self, name):
try:
fd, fn, desc = imp.find_module(name)
fd, fn, desc = self._imp_find_module(name)
except ImportError:
return False
if fd is not None: