Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Disable use of terminal colors when django-admin is run on a Pocket PC.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9bea530c33e3a236ccf115a41396bb167e7e7593 1 parent bd13190
Russell Keith-Magee authored July 14, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/core/management.py
4  django/core/management.py
@@ -45,8 +45,8 @@ def __getattr__(self, attr):
45 45
     global style
46 46
     style = dummy()
47 47
 
48  
-# Disable terminal coloring on Windows or if somebody's piping the output.
49  
-if sys.platform == 'win32' or not sys.stdout.isatty():
  48
+# Disable terminal coloring on Windows, Pocket PC, or if somebody's piping the output.
  49
+if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not sys.stdout.isatty():
50 50
     disable_termcolors()
51 51
 
52 52
 def _is_valid_dir_name(s):

0 notes on commit 9bea530

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