Skip to content

Commit cf5dd9c

Browse files
committed
Fix bug when reporting error
1 parent 15f27fb commit cf5dd9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Tools/scripts/classfix.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /ufs/guido/bin/sgi/python
2-
#! /usr/local/python
2+
#! /usr/local/bin/python
33

44
# Fix Python source files to use the new class definition syntax, i.e.,
55
# class C() = base(), base(), ...: ...
@@ -38,7 +38,7 @@
3838
def main():
3939
bad = 0
4040
if not sys.argv[1:]: # No arguments
41-
err('usage: ' + argv[0] + ' file-or-directory ...\n')
41+
err('usage: ' + sys.argv[0] + ' file-or-directory ...\n')
4242
sys.exit(2)
4343
for arg in sys.argv[1:]:
4444
if os.path.isdir(arg):

‎Tools/scripts/fixps.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def main():
1212
try:
1313
f = open(file, 'r+')
1414
except IOError:
15-
print f, ': can\'t open for update'
15+
print file, ': can\'t open for update'
1616
continue
1717
line = f.readline()
1818
if regex.match('^#! */usr/local/python', line) < 0:

0 commit comments

Comments
 (0)