summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-12-06 18:37:53 (GMT)
committerGuido van Rossum <guido@python.org>2007-12-06 18:37:53 (GMT)
commit4b28041530ce2dc8f741d544b6f86627348de3ef (patch)
tree550684cb268bd8a1676e11d6a08da0d22faeb0c7 /Tools/scripts
parentda3673e9d0321a9dc81bd471a3f03f241f1a34e4 (diff)
downloadcpython-4b28041530ce2dc8f741d544b6f86627348de3ef.zip
cpython-4b28041530ce2dc8f741d544b6f86627348de3ef.tar.gz
cpython-4b28041530ce2dc8f741d544b6f86627348de3ef.tar.bz2
Fix a last use of file() that should be open().
Diffstat (limited to 'Tools/scripts')
-rw-r--r--Tools/scripts/combinerefs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/combinerefs.py b/Tools/scripts/combinerefs.py
index 34ce860..68704dd 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):