Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some Django coding style fixes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 928e68192c4bf1eecc2439b8c81f6f72c4f900dd 1 parent 8ae74ea
@gdub gdub authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 django/core/management/color.py
View
10 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 @@ class dummy: pass
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
Please sign in to comment.
Something went wrong with that request. Please try again.