diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-10-25 09:13:21 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-10-25 09:13:21 +0200 |
commit | 8184560b39c985d14405a782bdfd628684be5200 (patch) | |
tree | 5373c719c37bb97308d356bb3e30e64dd2784781 /builder.py | |
parent | bf0aa82021d4cb4f7e029e3f6b923f4ec5c77091 (diff) | |
download | astroid-git-8184560b39c985d14405a782bdfd628684be5200.tar.gz |
only call transformers if modname specified
Diffstat (limited to 'builder.py')
-rw-r--r-- | builder.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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): |