summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2011-10-25 09:13:21 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2011-10-25 09:13:21 +0200
commit8184560b39c985d14405a782bdfd628684be5200 (patch)
tree5373c719c37bb97308d356bb3e30e64dd2784781 /builder.py
parentbf0aa82021d4cb4f7e029e3f6b923f4ec5c77091 (diff)
downloadastroid-git-8184560b39c985d14405a782bdfd628684be5200.tar.gz
only call transformers if modname specified
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/builder.py b/builder.py
index 16c92b06..a7e356e3 100644
--- a/builder.py
+++ b/builder.py
@@ -141,8 +141,9 @@ class ASTNGBuilder(InspectBuilder):
# handle delayed assattr nodes
for delayed in module._delayed_assattr:
self.delayed_assattr(delayed)
- for transformer in self._manager.transformers:
- transformer(module)
+ if modname:
+ for transformer in self._manager.transformers:
+ transformer(module)
return module
def _data_build(self, data, modname, path):