diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2006-07-14 05:26:55 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2006-07-14 05:26:55 +0000 |
| commit | 9bea530c33e3a236ccf115a41396bb167e7e7593 (patch) | |
| tree | 7727351ef33d2729a46afde485f3b381e628240f | |
| parent | bd13190499e8967a956b649761097ccb593141c1 (diff) | |
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
| -rw-r--r-- | django/core/management.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management.py b/django/core/management.py index eccd356ad7..2276c6efe1 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -45,8 +45,8 @@ def disable_termcolors(): 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): |
