Commit cf5dd9cb authored by Guido van Rossum's avatar Guido van Rossum

Fix bug when reporting error

parent 15f27fb6
#! /ufs/guido/bin/sgi/python
#! /usr/local/python
#! /usr/local/bin/python
# Fix Python source files to use the new class definition syntax, i.e.,
# class C() = base(), base(), ...: ...
......@@ -38,7 +38,7 @@ rep = sys.stdout.write
def main():
bad = 0
if not sys.argv[1:]: # No arguments
err('usage: ' + argv[0] + ' file-or-directory ...\n')
err('usage: ' + sys.argv[0] + ' file-or-directory ...\n')
sys.exit(2)
for arg in sys.argv[1:]:
if os.path.isdir(arg):
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment