

def load_certificate_file(path):
    '\n    Load a certificate from a specified path.\n\n    :param FilePath path: Absolute path to certificate file.\n\n    :return: A ``Certificate`` instance representing the parsed\n        certificate data.\n    '
    try:
        certificate_file = path.open()
    except IOError as e:
        (code, failure) = e
        raise PathError(b'Certificate file could not be opened.', e.filename, code, failure)
    certificate = Certificate.load(certificate_file.read(), format=crypto.FILETYPE_PEM)
    return e

dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py load_certificate_file/VarMisuse@75/173 `certificate`->`e`