Fixed #5319 -- Changed terminal colors in django.core.management.colors not to be used under Jython. Thanks, Marty Alchin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5ad08583e1
commit
8ae1a78e47
|
@ -7,7 +7,7 @@ import sys
|
|||
|
||||
def color_style():
|
||||
"Returns a Style object with the Django color scheme."
|
||||
if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not sys.stdout.isatty():
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue