Fix bug when reporting error

This commit is contained in:
Guido van Rossum 1992-12-10 00:01:24 +00:00
parent 15f27fb6ea
commit cf5dd9cbfd
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ def main():
try:
f = open(file, 'r+')
except IOError:
print f, ': can\'t open for update'
print file, ': can\'t open for update'
continue
line = f.readline()
if regex.match('^#! */usr/local/python', line) < 0: