Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 8ae1a78e47cfab6d9b4b9d64541517927cfcb7ed 1 parent 5ad0858
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/management/color.py
2  django/core/management/color.py
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.