mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
comment update
This commit is contained in:
parent
50e0b3df8b
commit
493b4e745d
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import importlib
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import collections.abc as abc
|
import collections.abc as abc
|
||||||
|
|
||||||
|
__version__ = '0.1.1'
|
||||||
|
|
||||||
class LazyObject(object):
|
class LazyObject(object):
|
||||||
|
|
||||||
|
@ -285,7 +286,7 @@ class BackgroundModuleLoader(threading.Thread):
|
||||||
time.sleep(0.001)
|
time.sleep(0.001)
|
||||||
last = hist[i % 5] = len(sys.modules)
|
last = hist[i % 5] = len(sys.modules)
|
||||||
i += 1
|
i += 1
|
||||||
# now import pkg_resources properly
|
# now import module properly
|
||||||
modname = importlib.util.resolve_name(self.name, self.package)
|
modname = importlib.util.resolve_name(self.name, self.package)
|
||||||
if isinstance(sys.modules[modname], BackgroundModuleProxy):
|
if isinstance(sys.modules[modname], BackgroundModuleProxy):
|
||||||
del sys.modules[modname]
|
del sys.modules[modname]
|
||||||
|
|
Loading…
Add table
Reference in a new issue