def warning(*args, **kw):
    text = format(*args, **kw)
    if terminal_supports_colors(sys.stderr):
        text = ansi_wrap(text, color='red')
    sys.stderr.write(text + '\n')
Show a warning message on the terminal.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/terminal.py/warning