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

Microfixes

parent 5146ea3a
#! /ufs/guido/bin/sgi/python
#! /usr/local/python
#! /usr/local/bin/python
# Fix Python source files to use the new equality test operator, i.e.,
# if x = y: ...
......@@ -42,7 +42,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):
......
......@@ -40,7 +40,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):
......
#! /usr/local/python
#! /usr/local/bin/python
# mkreal
#
......@@ -45,6 +45,7 @@ def mkrealdir(name):
def main():
sys.stdout = sys.stderr
progname = os.path.basename(sys.argv[0])
if progname == '-c': progname = 'mkreal'
args = sys.argv[1:]
if not args:
print 'usage:', progname, 'path ...'
......
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