Don't do bool(source) as some modules are 0 bytes.

pull/35/head
David Wilson 8 years ago
parent 9e68408597
commit e4efcd9455

@ -122,7 +122,7 @@ class ModuleResponder(object):
path = loader.get_filename(fullname)
source = loader.get_source(fullname)
if path and source:
if path is not None and source is not None:
return path, source, loader.is_package(fullname)
def _get_module_via_sys_modules(self, fullname):

Loading…
Cancel
Save