Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79b334b

Browse files
committed
Hand repair of cases where reindent changed lines of the form
\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.
1 parent 78542ef commit 79b334b

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

Tools/scripts/classfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def recursedown(dirname):
8080
return bad
8181

8282
def fix(filename):
83-
## dbg('fix(' + `filename` + ')\n')
83+
## dbg('fix(' + `filename` + ')\n')
8484
try:
8585
f = open(filename, 'r')
8686
except IOError, msg:

Tools/scripts/dutree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def show(total, d, prefix):
4242
tsub, dsub = d[key]
4343
list.append((tsub, key))
4444
if tsub is not None: sum = sum + tsub
45-
## if sum < total:
46-
## list.append((total - sum, os.curdir))
45+
## if sum < total:
46+
## list.append((total - sum, os.curdir))
4747
list.sort()
4848
list.reverse()
4949
width = len(`list[0][0]`)

Tools/scripts/fixcid.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def recursedown(dirname):
116116
return bad
117117

118118
def fix(filename):
119-
## dbg('fix(' + `filename` + ')\n')
119+
## dbg('fix(' + `filename` + ')\n')
120120
if filename == '-':
121121
# Filter mode
122122
f = sys.stdin
@@ -226,15 +226,15 @@ def initfixline():
226226

227227
def fixline(line):
228228
global Program
229-
## print '-->', `line`
229+
## print '-->', `line`
230230
i = 0
231231
while i < len(line):
232232
i = Program.search(line, i)
233233
if i < 0: break
234234
found = Program.group(0)
235-
## if Program is InsideCommentProgram: print '...',
236-
## else: print ' ',
237-
## print found
235+
## if Program is InsideCommentProgram: print '...',
236+
## else: print ' ',
237+
## print found
238238
if len(found) == 2:
239239
if found == '/*':
240240
Program = InsideCommentProgram
@@ -249,14 +249,14 @@ def fixline(line):
249249
i = i + n
250250
continue
251251
if NotInComment.has_key(found):
252-
## print 'Ignored in comment:',
253-
## print found, '-->', subst
254-
## print 'Line:', line,
252+
## print 'Ignored in comment:',
253+
## print found, '-->', subst
254+
## print 'Line:', line,
255255
subst = found
256-
## else:
257-
## print 'Substituting in comment:',
258-
## print found, '-->', subst
259-
## print 'Line:', line,
256+
## else:
257+
## print 'Substituting in comment:',
258+
## print found, '-->', subst
259+
## print 'Line:', line,
260260
line = line[:i] + subst + line[i+n:]
261261
n = len(subst)
262262
i = i + n

Tools/scripts/fixnotice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def process(arg):
3030
f.close()
3131
i = string.find(data, OLD_NOTICE)
3232
if i < 0:
33-
## print "No old notice in", arg
33+
## print "No old notice in", arg
3434
return
3535
data = data[:i] + NEW_NOTICE + data[i+len(OLD_NOTICE):]
3636
new = arg + ".new"

Tools/scripts/methfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def recursedown(dirname):
7878
return bad
7979

8080
def fix(filename):
81-
## dbg('fix(' + `filename` + ')\n')
81+
## dbg('fix(' + `filename` + ')\n')
8282
try:
8383
f = open(filename, 'r')
8484
except IOError, msg:

Tools/scripts/pathfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def recursedown(dirname):
8787
return bad
8888

8989
def fix(filename):
90-
## dbg('fix(' + `filename` + ')\n')
90+
## dbg('fix(' + `filename` + ')\n')
9191
try:
9292
f = open(filename, 'r')
9393
except IOError, msg:

0 commit comments

Comments
 (0)