mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix bug when reporting error
This commit is contained in:
parent
15f27fb6ea
commit
cf5dd9cbfd
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue