Author: gwilson
Date: 2007-10-13 10:59:54 -0500 (Sat, 13 Oct 2007)
New Revision: 6478

Modified:
   django/trunk/django/core/management/color.py
Log:
Some Django coding style fixes.


Modified: django/trunk/django/core/management/color.py
===================================================================
--- django/trunk/django/core/management/color.py        2007-10-13 07:28:18 UTC 
(rev 6477)
+++ django/trunk/django/core/management/color.py        2007-10-13 15:59:54 UTC 
(rev 6478)
@@ -2,12 +2,14 @@
 Sets up the terminal color scheme.
 """
 
-from django.utils import termcolors
 import sys
 
+from django.utils import termcolors
+
 def color_style():
-    "Returns a Style object with the Django color scheme."
-    if sys.platform == 'win32' or sys.platform == 'Pocket PC' or 
sys.platform.startswith('java') or not sys.stdout.isatty():
+    """Returns a Style object with the Django color scheme."""
+    if (sys.platform == 'win32' or sys.platform == 'Pocket PC'
+        or sys.platform.startswith('java') or not sys.stdout.isatty()):
         return no_style()
     class dummy: pass
     style = dummy()
@@ -21,7 +23,7 @@
     return style
 
 def no_style():
-    "Returns a Style object that has no colors."
+    """Returns a Style object that has no colors."""
     class dummy:
         def __getattr__(self, attr):
             return lambda x: x


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to