]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a last use of file() that should be open().
authorGuido van Rossum <guido@python.org>
Thu, 6 Dec 2007 18:37:53 +0000 (18:37 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 6 Dec 2007 18:37:53 +0000 (18:37 +0000)
Tools/scripts/combinerefs.py

index 34ce8606effbade0007c999f40f01d57f38583b2..68704dd7b9d5c83ebfc8bf834479ca4c7dd3b418 100644 (file)
@@ -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):