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

index ddcf002df22a35ea8be75d4c15c989820540cd32..f9cc18b5d3fe9d95a406f488c4d76522148a7a25 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"