Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/classfix.py @ 554:2e287a1503b2 legacy-trunk
Cosmetic change.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 01 Jan 1992 19:22:09 +0000 |
| parents | c158c8347654 |
| children | 6fbb03dc439e |
line wrap: on
line diff
--- a/Tools/scripts/classfix.py Wed Jan 01 18:38:21 1992 +0000 +++ b/Tools/scripts/classfix.py Wed Jan 01 19:22:09 1992 +0000 @@ -1,11 +1,12 @@ #! /ufs/guido/bin/sgi/python #! /usr/local/python -# Fix Python source files to use the new class definition syntax, -# i.e., +# Fix Python source files to use the new class definition syntax, i.e., +# class C() = base(), base(), ...: ... +# is changed to # class C(base, base, ...): ... -# instead of -# class C() = base(), base(), ...: ... +# The script uses heuristics to find class definitions that usually +# work but occasionally can fail; carefully check the output! # # Command line arguments are files or directories to be processed. # Directories are searched recursively for files whose name looks @@ -77,7 +78,7 @@ return bad def fix(filename): - dbg('fix(' + `filename` + ')\n') +## dbg('fix(' + `filename` + ')\n') try: f = open(filename, 'r') except IOError, msg:
