Author: russellm
Date: 2006-07-14 00:26:55 -0500 (Fri, 14 Jul 2006)
New Revision: 3347

Modified:
   django/trunk/django/core/management.py
Log:
Disable use of terminal colors when django-admin is run on a Pocket PC.

Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2006-07-14 03:09:02 UTC (rev 
3346)
+++ django/trunk/django/core/management.py      2006-07-14 05:26:55 UTC (rev 
3347)
@@ -45,8 +45,8 @@
     global style
     style = dummy()
 
-# Disable terminal coloring on Windows or if somebody's piping the output.
-if sys.platform == 'win32' or not sys.stdout.isatty():
+# Disable terminal coloring on Windows, Pocket PC, or if somebody's piping the 
output.
+if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not 
sys.stdout.isatty():
     disable_termcolors()
 
 def _is_valid_dir_name(s):


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to