mirror of
https://github.com/django/django.git
synced 2025-07-26 06:34:13 +00:00
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
This commit is contained in:
parent
bd13190499
commit
9bea530c33
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue