fix the style fixing thing
authorNathan Binkert <nate@binkert.org>
Sun, 22 Jul 2007 16:08:05 +0000 (09:08 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 22 Jul 2007 16:08:05 +0000 (09:08 -0700)
--HG--
extra : convert_revision : 65ffc14e7b78b49df9a67ef0d3521551dd44d1cd

util/style.py

index 3824cd7f5874ad53e60d2c74f064ed107faabcd0..47c992755e003340bdf093bd91b796c8486a77b3 100644 (file)
@@ -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,