mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 21:05:52 +00:00
Clean up properly in dryrun mode.
This commit is contained in:
parent
22efdacc73
commit
984971b0c3
@ -185,7 +185,9 @@ def convertor(linefilter, arglist):
|
||||
else:
|
||||
if verbose >= 1:
|
||||
sys.stderr.write("wmlindent: %s changed\n" % filename)
|
||||
if not dryrun:
|
||||
if dryrun:
|
||||
os.remove(filename + ".out")
|
||||
else:
|
||||
os.remove(filename) # For Windows portability
|
||||
# There's a tiny window open if you keyboard-
|
||||
# interrupt here. It's unavoidable, because
|
||||
|
Loading…
x
Reference in New Issue
Block a user