diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2010-09-10 11:48:20 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2010-09-10 11:48:20 +0200 |
commit | 629bddb398245c0cc0c8f93b66e835ce7cc6b718 (patch) | |
tree | 9f1bfb3ce2c9fccee931063e26034f7c9d66c3dc /builder.py | |
parent | 97a1dcea92a20cbf9f80069f81e73fe043d08516 (diff) | |
download | astroid-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.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 ############################################### |