summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-10-13 15:59:54 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-10-13 15:59:54 +0000
commit928e68192c4bf1eecc2439b8c81f6f72c4f900dd (patch)
tree7ad35190e3704c864c2c6bb4462e2d2ff0251fa0
parent8ae74eae556120d3be3d04dcbeabba3619c8cca3 (diff)
Some Django coding style fixes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/color.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py
index ce95401491..40fd4e7fdd 100644
--- a/django/core/management/color.py
+++ b/django/core/management/color.py
@@ -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 @@ def color_style():
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