def parsePEMKey(s, private=False, public=False, passwordCallback=None,
                implementations=["openssl", "python"]):
    for implementation in implementations:
        if implementation == "openssl" and cryptomath.m2cryptoLoaded:
            key = OpenSSL_RSAKey.parse(s, passwordCallback)
            break
        elif implementation == "python":
            key = Python_RSAKey.parsePEM(s)
            break
    else:
        raise ValueError("No acceptable implementations")

    return _parseKeyHelper(key, private, public)
Return a string that will fit within the given width.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/utils/keyfactory.py/parsePEMKey--crossover with--dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/ObjectListView/WordWrapRenderer.py/WordWrapRenderer._Truncate