def _LoadKey(self, keystr):
    """Load a key and return a key object.

    Args:
      keystr: str, key in PEM format
    Returns:
      tlslite.utils.RSAKey instance
    Raises:
      ValueError: keystr is improperly formed
    """
    try:
      key = tlslite_bridge.parsePEMKey(keystr)
    except (SyntaxError, __HOLE__), e:
      raise ValueError('invalid PEM key format: %s' % str(e))
    return key
dataset/ETHPy150Open google/simian/src/simian/auth/base.py/Auth1._LoadKey