Skip to content

Commit

Permalink
Disable use of terminal colors when django-admin is run on a Pocket PC.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jul 14, 2006
1 parent bd13190 commit 9bea530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/core/management.py
Expand Up @@ -45,8 +45,8 @@ def __getattr__(self, attr):
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):
Expand Down

0 comments on commit 9bea530

Please sign in to comment.