]> granicus.if.org Git - python/commitdiff
Hand repair of cases where reindent changed lines of the form
authorTim Peters <tim.peters@gmail.com>
Wed, 17 Jan 2001 09:13:33 +0000 (09:13 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 17 Jan 2001 09:13:33 +0000 (09:13 +0000)
\t\t\t\t\treal code
##\t\t\t\t\tunused code
\t\t\t\t\treal code

via untabifying and shifting the real code left.  Semantically the
same but made the intent of the commented-out-in-column-0 unused code
unclear.  The exact same unused code appears to have gotten copied from
file to file over the years.

Tools/scripts/classfix.py
Tools/scripts/dutree.py
Tools/scripts/fixcid.py
Tools/scripts/fixnotice.py
Tools/scripts/methfix.py
Tools/scripts/pathfix.py

index 332db1274e0151daad2819a610a51fa0f40470a0..26aa59908ca6ea834ac00ac10cd15ddd4c80a46e 100755 (executable)
@@ -80,7 +80,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:
index 63b3e672a55e4f57a2c33fe6ca9438a10039275d..7a32533fb182ad09fb2a627970f9519104d8762c 100755 (executable)
@@ -42,8 +42,8 @@ def show(total, d, prefix):
         tsub, dsub = d[key]
         list.append((tsub, key))
         if tsub is not None: sum = sum + tsub
-##      if sum < total:
-##              list.append((total - sum, os.curdir))
+##  if sum < total:
+##      list.append((total - sum, os.curdir))
     list.sort()
     list.reverse()
     width = len(`list[0][0]`)
index 836ceed87fa8d28b46337826c1190a0c6ef24d48..6f674c664be47b9b82440b976addc7a49fca9cd7 100755 (executable)
@@ -116,7 +116,7 @@ def recursedown(dirname):
     return bad
 
 def fix(filename):
-##      dbg('fix(' + `filename` + ')\n')
+##  dbg('fix(' + `filename` + ')\n')
     if filename == '-':
         # Filter mode
         f = sys.stdin
@@ -226,15 +226,15 @@ def initfixline():
 
 def fixline(line):
     global Program
-##      print '-->', `line`
+##  print '-->', `line`
     i = 0
     while i < len(line):
         i = Program.search(line, i)
         if i < 0: break
         found = Program.group(0)
-##              if Program is InsideCommentProgram: print '...',
-##              else: print '   ',
-##              print found
+##      if Program is InsideCommentProgram: print '...',
+##      else: print '   ',
+##      print found
         if len(found) == 2:
             if found == '/*':
                 Program = InsideCommentProgram
@@ -249,14 +249,14 @@ def fixline(line):
                     i = i + n
                     continue
                 if NotInComment.has_key(found):
-##                                      print 'Ignored in comment:',
-##                                      print found, '-->', subst
-##                                      print 'Line:', line,
+##                  print 'Ignored in comment:',
+##                  print found, '-->', subst
+##                  print 'Line:', line,
                     subst = found
-##                              else:
-##                                      print 'Substituting in comment:',
-##                                      print found, '-->', subst
-##                                      print 'Line:', line,
+##              else:
+##                  print 'Substituting in comment:',
+##                  print found, '-->', subst
+##                  print 'Line:', line,
             line = line[:i] + subst + line[i+n:]
             n = len(subst)
         i = i + n
index a69a9815af9546748b8660215632bd2890072df8..921d94e06595c62c1cf09fda04f74488dc3dcf5e 100755 (executable)
@@ -30,7 +30,7 @@ def process(arg):
     f.close()
     i = string.find(data, OLD_NOTICE)
     if i < 0:
-##         print "No old notice in", arg
+##      print "No old notice in", arg
         return
     data = data[:i] + NEW_NOTICE + data[i+len(OLD_NOTICE):]
     new = arg + ".new"
index a9b7c213c4bc70ab77bcdbf0c44c388be614807f..cbbb964d895d770f4873b635b77447f0c6ebad07 100755 (executable)
@@ -78,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:
index d4e307186ca7aa7b12aa6cc018ce36ed6053d591..e1c6e737de230330362ea8bfb91c50ce18aa810c 100755 (executable)
@@ -87,7 +87,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: