def print_cli(msg):
    '''
    Wrapper around print() that suppresses tracebacks on broken pipes (i.e.
    when salt output is piped to less and less is stopped prematurely).
    '''
    try:
        try:
            print(msg)
        except UnicodeEncodeError:
            print(msg.encode('utf-8'))
    except __HOLE__ as exc:
        if exc.errno != errno.EPIPE:
            raise
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/print_cli