Django

Code

Changeset 2845

Show
Ignore:
Timestamp:
05/04/06 23:08:14 (2 years ago)
Author:
adrian
Message:

Fixed #1762 -- Fixed Windows error in django.core.management. Thanks, ross.lazarus@gmail.com

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management.py

    r2842 r2845  
    4646    style = dummy() 
    4747 
    48 # Disable terminal coloring if somebody's piping the output. 
    49 if (not sys.stdout.isatty()) or (sys.platform == 'win32'): 
     48# Disable terminal coloring on Windows or if somebody's piping the output. 
     49if sys.platform == 'win32' or not sys.stdout.isatty(): 
    5050    disable_termcolors() 
    5151