def b2a(data, max_len=40):
    if type(data) == six.text_type:
        s = data
    elif type(data) == six.binary_type:
        s = binascii.b2a_hex(data)
    elif data is None:
        s = '-'
    else:
        s = u'{}'.format(data)
    if max_len > len(s):
        return s[:max_len] + u'..'
    else:
        return s
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/message.py/b2a/swapped operands of `>`