Django

Code

Changeset 6032

Show
Ignore:
Timestamp:
09/02/07 12:05:13 (1 year ago)
Author:
adrian
Message:

Fixed #5319 -- Changed terminal colors in django.core.management.colors not to be used under Jython. Thanks, Marty Alchin

Files:

Legend:

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

    r5898 r6032  
    88def color_style(): 
    99    "Returns a Style object with the Django color scheme." 
    10     if sys.platform == 'win32' or sys.platform == 'Pocket PC' or not sys.stdout.isatty(): 
     10    if sys.platform == 'win32' or sys.platform == 'Pocket PC' or sys.platform.startswith('java') or not sys.stdout.isatty(): 
    1111        return no_style() 
    1212    class dummy: pass