summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/builder.py b/builder.py
index 42168eb5..6b80f350 100644
--- a/builder.py
+++ b/builder.py
@@ -138,9 +138,6 @@ class AstroidBuilder(InspectBuilder):
# handle delayed assattr nodes
for delayed in module._delayed_assattr:
self.delayed_assattr(delayed)
- if modname:
- for transformer in self._manager.transformers:
- transformer(module)
return module
def _data_build(self, data, modname, path):
@@ -156,7 +153,7 @@ class AstroidBuilder(InspectBuilder):
package = True
else:
package = path and path.find('__init__.py') > -1 or False
- rebuilder = TreeRebuilder()
+ rebuilder = TreeRebuilder(self._manager)
module = rebuilder.visit_module(node, modname, package)
module.file = module.path = node_file
module._from_nodes = rebuilder._from_nodes