From: Guido van Rossum Date: Thu, 6 Dec 2007 18:37:53 +0000 (+0000) Subject: Fix a last use of file() that should be open(). X-Git-Tag: v3.0a2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b28041530ce2dc8f741d544b6f86627348de3ef;p=thirdparty%2FPython%2Fcpython.git Fix a last use of file() that should be open(). --- diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py index 34ce8606effb..68704dd7b9d5 100644 --- a/Tools/scripts/combinerefs.py +++ b/Tools/scripts/combinerefs.py @@ -86,7 +86,8 @@ def read(fileiter, pat, whilematch): break def combine(fname): - f = file(fname) + f = open(fname) + fi = iter(f) for line in read(fi, re.compile(r'^Remaining objects:$'), False):