def clean_clean_key(self, key): """Delete the "clean" unsigned key which we exported temporarily.""" # Remove the temporary exports of the public keys paths = [self._tmpfile_path("%s.asc" % x) for x in [self.signer, key]] PiusUtil.clean_files(paths)
def cleanup(self): """Cleanup all our temp files.""" PiusUtil.clean_files([self.tmp_keyring, ("%s~" % self.tmp_keyring)])