Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5c57e1

Browse files
committed
Microfixes
1 parent 5146ea3 commit d5c57e1

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Demo/scripts/eqfix.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 equality test operator, i.e.,
55
# if x = y: ...
@@ -42,7 +42,7 @@
4242
def main():
4343
bad = 0
4444
if not sys.argv[1:]: # No arguments
45-
err('usage: ' + argv[0] + ' file-or-directory ...\n')
45+
err('usage: ' + sys.argv[0] + ' file-or-directory ...\n')
4646
sys.exit(2)
4747
for arg in sys.argv[1:]:
4848
if os.path.isdir(arg):

Tools/scripts/methfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
def main():
4141
bad = 0
4242
if not sys.argv[1:]: # No arguments
43-
err('usage: ' + argv[0] + ' file-or-directory ...\n')
43+
err('usage: ' + sys.argv[0] + ' file-or-directory ...\n')
4444
sys.exit(2)
4545
for arg in sys.argv[1:]:
4646
if os.path.isdir(arg):

Tools/scripts/mkreal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/local/python
1+
#! /usr/local/bin/python
22

33
# mkreal
44
#
@@ -45,6 +45,7 @@ def mkrealdir(name):
4545
def main():
4646
sys.stdout = sys.stderr
4747
progname = os.path.basename(sys.argv[0])
48+
if progname == '-c': progname = 'mkreal'
4849
args = sys.argv[1:]
4950
if not args:
5051
print 'usage:', progname, 'path ...'

0 commit comments

Comments
 (0)