Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored September 02, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/management/color.py
2  django/core/management/color.py
@@ -7,7 +7,7 @@
7 7
 
8 8
 def color_style():
9 9
     "Returns a Style object with the Django color scheme."
10  
-    if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not sys.stdout.isatty():
  10
+    if sys.platform == 'win32' or sys.platform == 'Pocket PC' or sys.platform.startswith('java') or not sys.stdout.isatty():
11 11
         return no_style()
12 12
     class dummy: pass
13 13
     style = dummy()

0 notes on commit 8ae1a78

Please sign in to comment.
Something went wrong with that request. Please try again.