Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/classfix.py @ 4300:e05da8043b50 legacy-trunk
Note obsolescence
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 11 Sep 1996 23:34:32 +0000 |
| parents | ef082c1072a7 |
| children | 73758db2f464 |
line wrap: on
line diff
--- a/Tools/scripts/classfix.py Wed Sep 11 23:31:42 1996 +0000 +++ b/Tools/scripts/classfix.py Wed Sep 11 23:34:32 1996 +0000 @@ -1,9 +1,13 @@ #! /usr/local/bin/python +# This script is obsolete -- it is kept for historical purposes only. +# # Fix Python source files to use the new class definition syntax, i.e., +# the syntax used in Python versions before 0.9.8: # class C() = base(), base(), ...: ... -# is changed to +# is changed to the current syntax: # class C(base, base, ...): ... +# # The script uses heuristics to find class definitions that usually # work but occasionally can fail; carefully check the output! #
