Source code for crossbar.edge.worker.xbr._util

##############################################################################
#
#                        Crossbar.io
#     Copyright (C) typedef int GmbH. All rights reserved.
#
##############################################################################
import six

from crossbar._util import hl


[docs] def hlval(val): return hl("{}".format(val), color="white", bold=True)
[docs] def hlcontract(oid): if not isinstance(oid, six.text_type): oid = "{}".format(oid) return hl("<{}>".format(oid), color="magenta", bold=True)