def supports_color():
    """
    Returns True if the running system's terminal supports color, and False
    otherwise.
    """
    unsupported_platform = (('win32', 'Pocket PC') in sys.platform)
    # isatty is not always implemented, #6223.
    is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
    if unsupported_platform or not is_a_tty:
        return False
    return True
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/core/management/color.py/supports_color/swapped operands of `in`