def parseAsPublicKey(s):
    try:
        return parsePEMKey(s, public=True)
    except:
        return parseXMLKey(s, public=True)
Parse an XML or PEM-formatted public key.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/utils/keyfactory.py/parseAsPublicKey