From: Gregory P. Smith Date: Sun, 12 Feb 2012 23:58:36 +0000 (-0800) Subject: fix whitespace normalization before pushing. X-Git-Tag: v3.2.3rc1~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc66f9e365be38ffb3db5252a10170df8a947ac;p=python fix whitespace normalization before pushing. --- diff --git a/Lib/lib2to3/main.py b/Lib/lib2to3/main.py index ddcf002df2..f9cc18b5d3 100644 --- a/Lib/lib2to3/main.py +++ b/Lib/lib2to3/main.py @@ -79,11 +79,11 @@ class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool): if self._append_suffix: filename += self._append_suffix if orig_filename != filename: - output_dir = os.path.dirname(filename) - if not os.path.isdir(output_dir): - os.makedirs(output_dir) - self.log_message('Writing converted %s to %s.', orig_filename, - filename) + output_dir = os.path.dirname(filename) + if not os.path.isdir(output_dir): + os.makedirs(output_dir) + self.log_message('Writing converted %s to %s.', orig_filename, + filename) if not self.nobackups: # Make backup backup = filename + ".bak"