openmath/encoder.py
def encode_bytes(obj, nsprefix=None):
    """ Encodes an OpenMath element into a string.

    :param obj: Object to encode as string.
    :type obj: OMAny

    :rtype: bytes
    """

    node = encode_xml(obj, nsprefix)
    return etree.tostring(node)
def encode_bytes(obj, nsprefix=None):
    node = encode_xml(obj, nsprefix)
    return etree.tostring(node)
def encode_bytes ( obj , nsprefix = None ) : node = encode_xml ( obj , nsprefix ) return etree . tostring ( node )
Encodes an OpenMath element into a string.

    :param obj: Object to encode as string.
    :type obj: OMAny

    :rtype: bytes
Encodes an OpenMath element into a string .