def _stderr_supports_color():
    color = False
    if curses and sys.stderr.isatty():
        try:
            curses.setupterm()
            if 0 > curses.tigetnum("colors"):
                color = True
        except Exception:
            pass
    return color

# From https://github.com/facebook/tornado/blob/master/tornado/log.py
dataset/ETHPy150Open mihaip/readerisdead/base/log.py/_stderr_supports_color/swapped operands of `>`