fix whitespace normalization before pushing.

This commit is contained in:
Gregory P. Smith 2012-02-12 15:58:36 -08:00
parent 58f23ffb21
commit efc66f9e36

View file

@ -79,11 +79,11 @@ class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
if self._append_suffix: if self._append_suffix:
filename += self._append_suffix filename += self._append_suffix
if orig_filename != filename: if orig_filename != filename:
output_dir = os.path.dirname(filename) output_dir = os.path.dirname(filename)
if not os.path.isdir(output_dir): if not os.path.isdir(output_dir):
os.makedirs(output_dir) os.makedirs(output_dir)
self.log_message('Writing converted %s to %s.', orig_filename, self.log_message('Writing converted %s to %s.', orig_filename,
filename) filename)
if not self.nobackups: if not self.nobackups:
# Make backup # Make backup
backup = filename + ".bak" backup = filename + ".bak"