summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2011-01-11 15:07:07 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2011-01-11 15:07:07 +0100
commitc2f75e6b5b2fd23d7185a10d6f1929dce02a97a0 (patch)
tree264e90711f00ac1acd8db21de6860665724926d6 /builder.py
parent7bbae9019bd7474f66aa2ab878cbe3565f6dd516 (diff)
downloadastroid-git-c2f75e6b5b2fd23d7185a10d6f1929dce02a97a0.tar.gz
change ASTManager cache attribute to astng_cache so it doesn't sound protected (actually used externally)
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 8f82c65e..40ea7849 100644
--- a/builder.py
+++ b/builder.py
@@ -142,7 +142,7 @@ class ASTNGBuilder(InspectBuilder):
"""build astng from source code string and return rebuilded astng"""
module = self._data_build(data, modname, path)
if self._manager is not None:
- self._manager._cache[module.name] = module
+ self._manager.astng_cache[module.name] = module
# post tree building steps after we stored the module in the cache:
for from_node in module._from_nodes:
self.add_from_names_to_locals(from_node)