projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03730ed
)
fix the style fixing thing
author
Nathan Binkert
<nate@binkert.org>
Sun, 22 Jul 2007 16:08:05 +0000
(09:08 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Sun, 22 Jul 2007 16:08:05 +0000
(09:08 -0700)
--HG--
extra : convert_revision :
65ffc14e7b78b49df9a67ef0d3521551dd44d1cd
util/style.py
patch
|
blob
|
history
diff --git
a/util/style.py
b/util/style.py
index 3824cd7f5874ad53e60d2c74f064ed107faabcd0..47c992755e003340bdf093bd91b796c8486a77b3 100644
(file)
--- a/
util/style.py
+++ b/
util/style.py
@@
-84,7
+84,7
@@
def checkwhite(filename):
if not checkwhite_line(line):
yield line,num + 1
-def fixwhite_line(line):
+def fixwhite_line(line
, tabsize
):
if lead.search(line):
newline = ''
for i,c in enumerate(line):
@@
-117,7
+117,7
@@
def fixwhite(filename, tabsize, fixonly=None):
for i,line in enumerate(lines):
if fixonly is None or i in fixonly:
- line = fixwhite_line(line)
+ line = fixwhite_line(line
, tabsize
)
print >>f, line,