Style checker: Fix a couple bugs in style.py.
This commit is contained in:
parent
cd5a7f7221
commit
43b58ce3ad
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ def fixwhite(filename, fixonly=None):
|
||||||
|
|
||||||
for i,line in enumerate(lines):
|
for i,line in enumerate(lines):
|
||||||
if fixonly is None or i in fixonly:
|
if fixonly is None or i in fixonly:
|
||||||
line = fixwhite_line(line, tabsize)
|
line = fixwhite_line(line)
|
||||||
|
|
||||||
print >>f, line,
|
print >>f, line,
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@ def do_check_style(ui, repo, *files, **args):
|
||||||
fixonly.add(i)
|
fixonly.add(i)
|
||||||
|
|
||||||
if fixonly:
|
if fixonly:
|
||||||
if prompt(fname, fixonly):
|
if prompt(fname, fixwhite, fixonly):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def do_check_format(ui, repo, **args):
|
def do_check_format(ui, repo, **args):
|
||||||
|
|
Loading…
Reference in a new issue