##// END OF EJS Templates
Don't find importable non-modules in shim
Min RK -
Show More
@@ -29,10 +29,13 b' class ShimImporter(object):'
29 29 if fullname.startswith(self.src + '.'):
30 30 mirror_name = self._mirror_name(fullname)
31 31 try:
32 __import__(mirror_name)
32 mod = import_item(mirror_name)
33 33 except ImportError:
34 34 return
35 35 else:
36 if not isinstance(mod, types.ModuleType):
37 # not a module
38 return None
36 39 return self
37 40
38 41 def load_module(self, fullname):
General Comments 0
You need to be logged in to leave comments. Login now