summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2014-03-19 09:48:51 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2014-03-19 09:48:51 +0100
commit6cd480552017e6e44f0bc0c17687fc1c380fb9c7 (patch)
tree190cdf9bfe82bd763a0bf3f7a24fba0c9df516d6 /builder.py
parent6b53e3d94807fa59ef751068199f3c2b759f2f1a (diff)
downloadastroid-git-6cd480552017e6e44f0bc0c17687fc1c380fb9c7.tar.gz
call transformation for builtin modules as well (though not yet for their child nodes)
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/builder.py b/builder.py
index fc653ec2..b088b205 100644
--- a/builder.py
+++ b/builder.py
@@ -102,6 +102,12 @@ class AstroidBuilder(InspectBuilder):
# this is a built-in module
# get a partial representation by introspection
node = self.inspect_build(module, modname=modname, path=path)
+ # we have to handle transformation by ourselves since the rebuilder
+ # isn't called for builtin nodes
+ #
+ # XXX it's then only called for Module nodes, not for underlying
+ # nodes
+ node = self._manager.transform(node)
return node
def file_build(self, path, modname=None):