diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 11:25:08 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 11:25:08 +0100 |
commit | 52d36b84d1dee758efe23cccb7cc5cc04ce2e7f6 (patch) | |
tree | afb4f606a1f3184359b188c1cb12787460bbf2f5 /builder.py | |
parent | 4ec4201c489fb4fd608b333db7f35b6933f1eaa6 (diff) | |
download | astroid-git-52d36b84d1dee758efe23cccb7cc5cc04ce2e7f6.tar.gz |
remove unused "_file" attribute ; node.file has already been set
Diffstat (limited to 'builder.py')
-rw-r--r-- | builder.py | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -63,7 +63,6 @@ class ASTNGBuilder: manager = ASTNGManager() self._manager = manager self._module = None - self._file = None self._done = None self.rebuilder = TreeRebuilder(manager) self._dyn_modname_map = {'gtk': 'gtk._gtk'} @@ -111,7 +110,6 @@ class ASTNGBuilder: except IOError, ex: msg = 'Unable to load file %r (%s)' % (path, ex) raise ASTNGBuildingException(msg) - self._file = path # get module name if necessary, *before modifying sys.path* if modname is None: try: @@ -122,9 +120,7 @@ class ASTNGBuilder: try: sys.path.insert(0, dirname(path)) node = self.string_build(data, modname, path) - node.file = abspath(path) finally: - self._file = None sys.path.pop(0) return node |