Permalink
Browse files

Fixed #5319 -- Changed terminal colors in django.core.management.colo…

…rs 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
  • Loading branch information...
1 parent 5ad0858 commit 8ae1a78e47cfab6d9b4b9d64541517927cfcb7ed @adrianholovaty adrianholovaty committed Sep 2, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/management/color.py
@@ -7,7 +7,7 @@
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()

0 comments on commit 8ae1a78

Please sign in to comment.