def _to_bytes()

in rocketmq/client.py [0:0]


def _to_bytes(s):
    if isinstance(s, text_type):
        return s.encode('utf-8')
    return s