summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder.py b/builder.py
index ef86ce62..b6ceff82 100644
--- a/builder.py
+++ b/builder.py
@@ -145,7 +145,7 @@ class AstroidBuilder(InspectBuilder):
after a module has been built
"""
module.file_encoding = encoding
- self._manager.astroid_cache[module.name] = module
+ self._manager.cache_module(module)
# post tree building steps after we stored the module in the cache:
for from_node in module._from_nodes:
if from_node.modname == '__future__':