summaryrefslogtreecommitdiff
path: root/builder.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-10 11:48:20 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2010-09-10 11:48:20 +0200
commit629bddb398245c0cc0c8f93b66e835ce7cc6b718 (patch)
tree9f1bfb3ce2c9fccee931063e26034f7c9d66c3dc /builder.py
parent97a1dcea92a20cbf9f80069f81e73fe043d08516 (diff)
downloadastroid-git-629bddb398245c0cc0c8f93b66e835ce7cc6b718.tar.gz
fix astng building bug: we've to set module.package flag at the node creation time
otherwise we'll miss this information when infering relative import during the build process (this should fix for instance some problems with numpy) --HG-- branch : stable
Diffstat (limited to 'builder.py')
-rw-r--r--builder.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/builder.py b/builder.py
index b0e5d18b..e5142617 100644
--- a/builder.py
+++ b/builder.py
@@ -155,8 +155,7 @@ class ASTNGBuilder:
package = True
else:
package = path and path.find('__init__.py') > -1 or False
- newnode = self.rebuilder.build(node, modname, node_file)
- newnode.package = package
+ newnode = self.rebuilder.build(node, modname, node_file, package)
return newnode
# astng from living objects ###############################################