Ticket #5319: color.diff

File color.diff, 601 bytes (added by Marty Alchin <gulopine@…>, 17 years ago)

Added a test for Java so that Jython doesn't use terminal colors

  • django/core/management/color.py

     
    77
    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
    1313    style = dummy()
Back to Top