Clean up properly in dryrun mode.

This commit is contained in:
Eric S. Raymond 2007-06-29 11:08:13 +00:00
parent 22efdacc73
commit 984971b0c3

View file

@ -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