diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-01-13 12:30:18 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-01-13 12:30:18 -0800 |
commit | 43b58ce3adbd827d9dabfcb117e4ad74ddd911d8 (patch) | |
tree | 658d908f2a54f8cd4f6f9212fb65167dbc838986 /util/style.py | |
parent | cd5a7f72215cf29bf958666306f161ef120298a3 (diff) | |
download | gem5-43b58ce3adbd827d9dabfcb117e4ad74ddd911d8.tar.xz |
Style checker: Fix a couple bugs in style.py.
Diffstat (limited to 'util/style.py')
-rw-r--r-- | util/style.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |