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
This commit is contained in:
parent
b301640a1b
commit
cca0e7346d
|
@ -45,8 +45,8 @@ def disable_termcolors():
|
||||||
global style
|
global style
|
||||||
style = dummy()
|
style = dummy()
|
||||||
|
|
||||||
# Disable terminal coloring if somebody's piping the output.
|
# Disable terminal coloring on Windows or if somebody's piping the output.
|
||||||
if (not sys.stdout.isatty()) or (sys.platform == 'win32'):
|
if sys.platform == 'win32' or not sys.stdout.isatty():
|
||||||
disable_termcolors()
|
disable_termcolors()
|
||||||
|
|
||||||
def _is_valid_dir_name(s):
|
def _is_valid_dir_name(s):
|
||||||
|
|
Loading…
Reference in New Issue