You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/astng/files/astng-0.23.1-file-open.patch

20 lines
680 B

# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1326988959 -3600
# Node ID 0272006bdfbee3a0a1447315633bbfeb2f5920e8
# Parent b763bb212ddd6df802ec09338f69abfd96917698
use open rather than file as 2to3 miss it (probably because of the file class attribute)
diff -r b763bb212ddd -r 0272006bdfbe scoped_nodes.py
--- a/scoped_nodes.py Thu Dec 08 17:37:40 2011 +0100
+++ b/scoped_nodes.py Thu Jan 19 17:02:39 2012 +0100
@@ -246,7 +246,7 @@
@property
def file_stream(self):
if self.file is not None:
- return file(self.file)
+ return open(self.file)
return None
def block_range(self, lineno):