diff options
author | Guido van Rossum <guido@python.org> | 1992-12-10 00:01:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-12-10 00:01:24 (GMT) |
commit | cf5dd9cbfda918b417a17d4413b7d099d3f47aaa (patch) | |
tree | 697f168b76409e5f3f90f3dedb7965b7f581beef /Tools/scripts | |
parent | 15f27fb6ea2e0c3e0f7bf361cb9fd2db729bb254 (diff) | |
download | cpython-cf5dd9cbfda918b417a17d4413b7d099d3f47aaa.zip cpython-cf5dd9cbfda918b417a17d4413b7d099d3f47aaa.tar.gz cpython-cf5dd9cbfda918b417a17d4413b7d099d3f47aaa.tar.bz2 |
Fix bug when reporting error
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/classfix.py | 4 | ||||
-rwxr-xr-x | Tools/scripts/fixps.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/classfix.py b/Tools/scripts/classfix.py index c184256..7ec0e7a 100755 --- a/Tools/scripts/classfix.py +++ b/Tools/scripts/classfix.py @@ -1,5 +1,5 @@ #! /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): diff --git a/Tools/scripts/fixps.py b/Tools/scripts/fixps.py index c5e4cb3..3238c49 100755 --- a/Tools/scripts/fixps.py +++ b/Tools/scripts/fixps.py @@ -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: |