comment update

This commit is contained in:
Anthony Scopatz 2016-07-24 12:44:28 -04:00 committed by Leonardo Santagada
parent c6b4b7db71
commit 3b68cb248a

View file

@ -10,6 +10,7 @@ import importlib
import importlib.util
import collections.abc as abc
__version__ = '0.1.1'
class LazyObject(object):
@ -285,7 +286,7 @@ class BackgroundModuleLoader(threading.Thread):
time.sleep(0.001)
last = hist[i % 5] = len(sys.modules)
i += 1
# now import pkg_resources properly
# now import module properly
modname = importlib.util.resolve_name(self.name, self.package)
if isinstance(sys.modules[modname], BackgroundModuleProxy):
del sys.modules[modname]