From 01c77c66289f8e9c8d15b8da623fae4014ec2edb Mon Sep 17 00:00:00 2001 From: Alex Martelli Date: Thu, 24 Aug 2006 02:58:11 +0000 Subject: Anna Ravenscroft identified many occurrences of "file" used to open a file in the stdlib and changed each of them to use "open" instead. At this time there are no other known occurrences that can be safely changed (in Lib and all subdirectories thereof). --- Lib/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/site.py') diff --git a/Lib/site.py b/Lib/site.py index 92798ca3c5a..0cf19cd349c 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -274,7 +274,7 @@ class _Printer(object): for filename in self.__files: filename = os.path.join(dir, filename) try: - fp = file(filename, "rU") + fp = open(filename, "rU") data = fp.read() fp.close() break -- cgit v1.2.3