use open rather than file as 2to3 miss it (probably because of the file class attribute)

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changeset0272006bdfbe
branchdefault
phasepublic
hiddenno
parent revision#b763bb212ddd test: don't depend on the way test is started
child revision#301a4b1cc7a7 default is stable, #80c265e655cf Fix raw_building.object_build for pypy implementation. Closes #99583
files modified by this revision
scoped_nodes.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1326988959 -3600
# Thu Jan 19 17:02:39 2012 +0100
# Node ID 0272006bdfbee3a0a1447315633bbfeb2f5920e8
# Parent b763bb212ddd6df802ec09338f69abfd96917698
use open rather than file as 2to3 miss it (probably because of the file class attribute)

diff --git a/scoped_nodes.py b/scoped_nodes.py
@@ -244,11 +244,11 @@
1          self.body = []
2 
3      @property
4      def file_stream(self):
5          if self.file is not None:
6 -            return file(self.file)
7 +            return open(self.file)
8          return None
9 
10      def block_range(self, lineno):
11          """return block line numbers.
12