[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py Fix up indentation (I assume it was left strange to minimize the diff in some

Marius Gedminas marius at pov.lt
Wed Jul 18 11:18:50 EDT 2007


Log message for revision 78115:
  Fix up indentation (I assume it was left strange to minimize the diff in some
  previous commit).
  
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-18 15:17:51 UTC (rev 78114)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-18 15:18:50 UTC (rev 78115)
@@ -2296,14 +2296,14 @@
     # --no-color option.  That way the subprocess doesn't have to decide (which
     # it would do incorrectly anyway because stdout wouled be a pipe).
     def apply_auto_color(args):
-            if args and '--auto-color' in args:
-                if sys.stdout.isatty():
-                    colorization = '--color'
-                else:
-                    colorization = '--no-color'
+        if args and '--auto-color' in args:
+            if sys.stdout.isatty():
+                colorization = '--color'
+            else:
+                colorization = '--no-color'
 
-                args[:] = [arg.replace('--auto-color', colorization)
-                           for arg in args]
+            args[:] = [arg.replace('--auto-color', colorization)
+                       for arg in args]
 
     apply_auto_color(args)
     apply_auto_color(defaults)



More information about the Zope3-Checkins mailing list