From: Gabe Black Date: Thu, 13 Jan 2011 20:30:18 +0000 (-0800) Subject: Style checker: Fix a couple bugs in style.py. X-Git-Tag: stable_2012_02_02~662 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43b58ce3adbd827d9dabfcb117e4ad74ddd911d8;p=gem5.git Style checker: Fix a couple bugs in style.py. --- diff --git a/util/style.py b/util/style.py index 1018e813c..1307f8728 100644 --- a/util/style.py +++ b/util/style.py @@ -103,7 +103,7 @@ def fixwhite(filename, fixonly=None): for i,line in enumerate(lines): if fixonly is None or i in fixonly: - line = fixwhite_line(line, tabsize) + line = fixwhite_line(line) print >>f, line, @@ -309,7 +309,7 @@ def do_check_style(ui, repo, *files, **args): fixonly.add(i) if fixonly: - if prompt(fname, fixonly): + if prompt(fname, fixwhite, fixonly): return True def do_check_format(ui, repo, **args):