Fix inverted logic.

This commit is contained in:
David Wilson 2017-09-22 13:39:20 +05:30
parent 2fed3613e9
commit 175abee2c9
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ class ModuleFinder(object):
module to be loaded that is not part of the standard library.
"""
related = self._related_cache.get(fullname)
if related is None:
if related is not None:
return related
_, src, _ = self.get_module_source(fullname)