default is stable

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changeset301a4b1cc7a7
branchstable
phasepublic
hiddenno
parent revision#0272006bdfbe use open rather than file as 2to3 miss it (probably because of the file class attribute), #711e69e4d80e add trove classifiers (tell about python 3 support for pypi)
child revision#27ca2820b32b get_module_part should be given a context_file. Closes pyreverse crash #92362
files modified by this revision
scoped_nodes.py
test/unittest_scoped_nodes.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1329215915 -3600
# Tue Feb 14 11:38:35 2012 +0100
# Branch stable
# Node ID 301a4b1cc7a786d30c0f8ee5b0f10a044a2cdfc5
# Parent 711e69e4d80e14cd3b9ef87ff6f566e9473a4879
# Parent 0272006bdfbee3a0a1447315633bbfeb2f5920e8
default is stable

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 
diff --git a/test/unittest_scoped_nodes.py b/test/unittest_scoped_nodes.py
@@ -267,11 +267,11 @@
13 
14      def test_lambda_qname(self):
15          astng = abuilder.string_build('''
16  lmbd = lambda: None
17  ''', __name__, __file__)
18 -        self.assertEqual('unittest_scoped_nodes.<lambda>', astng['lmbd'].parent.value.qname())
19 +        self.assertEqual('%s.<lambda>' % __name__, astng['lmbd'].parent.value.qname())
20 
21      def test_is_method(self):
22          data = '''
23  class A:
24      def meth1(self):