]> granicus.if.org Git - python/commitdiff
fix whitespace normalization before pushing.
authorGregory P. Smith <greg@krypto.org>
Sun, 12 Feb 2012 23:59:35 +0000 (15:59 -0800)
committerGregory P. Smith <greg@krypto.org>
Sun, 12 Feb 2012 23:59:35 +0000 (15:59 -0800)
Lib/lib2to3/main.py

index 014238e566c84ff3829ddea8f970144879e3c719..ad0625e52730f54578fb0160eb8c38700c7ec1c6 100644 (file)
@@ -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"