Ticket #8100: jython_now_has_isatty.diff

File jython_now_has_isatty.diff, 677 bytes (added by Leo Soto M., 16 years ago)
  • django/core/management/color.py

    diff -r 35a295a0a8d1 django/core/management/color.py
    a b  
    1111    Returns True if the running system's terminal supports color, and False
    1212    otherwise.
    1313    """
    14     unsupported_platform = (sys.platform in ('win32', 'Pocket PC')
    15                             or sys.platform.startswith('java'))
     14    unsupported_platform = (sys.platform in ('win32', 'Pocket PC'))
    1615    # isatty is not always implemented, #6223.
    1716    is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
    1817    if unsupported_platform or not is_a_tty:
Back to Top