Author: adrian
Date: 2007-09-02 12:05:13 -0500 (Sun, 02 Sep 2007)
New Revision: 6032

Modified:
   django/trunk/django/core/management/color.py
Log:
Fixed #5319 -- Changed terminal colors in django.core.management.colors not to 
be used under Jython. Thanks, Marty Alchin

Modified: django/trunk/django/core/management/color.py
===================================================================
--- django/trunk/django/core/management/color.py        2007-08-31 11:37:28 UTC 
(rev 6031)
+++ django/trunk/django/core/management/color.py        2007-09-02 17:05:13 UTC 
(rev 6032)
@@ -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()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to