From cca0e7346d314220e489c156d6a552a75244fbd4 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 5 May 2006 04:08:14 +0000 Subject: [PATCH] Fixed #1762 -- Fixed Windows error in django.core.management. Thanks, ross.lazarus@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@2845 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index d2a620772b..90da969f42 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 if somebody's piping the output. -if (not sys.stdout.isatty()) or (sys.platform == 'win32'): +# Disable terminal coloring on Windows or if somebody's piping the output. +if sys.platform == 'win32' or not sys.stdout.isatty(): disable_termcolors() def _is_valid_dir_name(s):