summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2007-07-22 09:08:05 -0700
committerNathan Binkert <nate@binkert.org>2007-07-22 09:08:05 -0700
commit78759ad17622e5af7fb4698e77fd33500b3e55b1 (patch)
tree846f82b56387e2a6200d90f4a91ba2320313f943
parent03730edc45e2e00bdec58dabc84e94c632634a1a (diff)
downloadgem5-78759ad17622e5af7fb4698e77fd33500b3e55b1.tar.xz
fix the style fixing thing
--HG-- extra : convert_revision : 65ffc14e7b78b49df9a67ef0d3521551dd44d1cd
-rw-r--r--util/style.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/style.py b/util/style.py
index 3824cd7f5..47c992755 100644
--- 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,