summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:22:09 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:22:09 (GMT)
commit0a60ee1c69e248281195d8cf653423825a35aae3 (patch)
tree1c2e72d7ebbb200e2f8d0adc949c007c855da81b /Tools
parent0af9a283a190d59580c38cf279baf419aa493c35 (diff)
downloadcpython-0a60ee1c69e248281195d8cf653423825a35aae3.zip
cpython-0a60ee1c69e248281195d8cf653423825a35aae3.tar.gz
cpython-0a60ee1c69e248281195d8cf653423825a35aae3.tar.bz2
Cosmetic change.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/classfix.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Tools/scripts/classfix.py b/Tools/scripts/classfix.py
index 7038906..63f0e2b 100755
--- a/Tools/scripts/classfix.py
+++ b/Tools/scripts/classfix.py
@@ -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.,
-# class C(base, base, ...): ...
-# instead of
+# Fix Python source files to use the new class definition syntax, i.e.,
# class C() = base(), base(), ...: ...
+# is changed to
+# 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 @@ def recursedown(dirname):
return bad
def fix(filename):
- dbg('fix(' + `filename` + ')\n')
+## dbg('fix(' + `filename` + ')\n')
try:
f = open(filename, 'r')
except IOError, msg: