diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-04-25 23:43:47 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-04-25 23:43:47 +0200 |
commit | 0e131af59e62e3730f85699041a4785695bbe906 (patch) | |
tree | e8dcb9712819db1e5172b8c12acfdabd6926e59c /scoped_nodes.py | |
parent | fad5973bcd2adcb418f8f501c3d5a08f13409707 (diff) | |
download | astroid-git-0e131af59e62e3730f85699041a4785695bbe906.tar.gz |
Add future imports to Module.future_imports.
Diffstat (limited to 'scoped_nodes.py')
-rw-r--r-- | scoped_nodes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py index 0e1f367d..540e8a10 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -236,6 +236,9 @@ class Module(LocalsDictNodeNG): # as value globals = None + # Future imports + future_imports = None + # names of python special attributes (handled by getattr impl.) special_attributes = set(('__name__', '__doc__', '__file__', '__path__', '__dict__')) @@ -248,6 +251,7 @@ class Module(LocalsDictNodeNG): self.pure_python = pure_python self.locals = self.globals = {} self.body = [] + self.future_imports = set() @property def file_stream(self): |