summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-01-02 18:20:24 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2016-01-02 18:20:24 +0200
commitc92e421ef92854cbb8bfa89a7018a74fa07ad0d5 (patch)
tree4cf5560a5344873a57a2b091021a3aaa818f69f6 /astroid/tree/scoped_nodes.py
parent0d82bf7d7912e729f5368f01ac92687e9fda3b1e (diff)
downloadastroid-git-c92e421ef92854cbb8bfa89a7018a74fa07ad0d5.tar.gz
file_stream is no more, using .stream() is the recommended way to obtain a module stream.
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index 0509eb95..92be900a 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -282,25 +282,10 @@ class Module(QualifiedNameMixin, lookup.LocalsDictNode):
return stream
return None
- @property
- def file_stream(self):
- util.attr_to_method_warning(('file_stream', type(self).__name__))
- return self._get_stream()
-
def stream(self):
"""Get a stream to the underlying file or bytes."""
return self._get_stream()
- def close(self):
- """Close the underlying file streams."""
- warnings.warn("The close method is deprecated and is "
- "slated for removal in astroid 1.6, along "
- "with 'file_stream'. "
- "Its behavior is replaced by managing each "
- "file stream returned by the 'stream' method.",
- PendingDeprecationWarning,
- stacklevel=2)
-
def block_range(self, lineno):
"""return block line numbers.