MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / _get_key

Method _get_key

pgpy/pgp.py:2707–2715  ·  view source on GitHub ↗
(self, alias)

Source from the content-addressed store, hash-verified

2705 yield pgpkey
2706
2707 def _get_key(self, alias):
2708 for m in self._aliases:
2709 if alias in m:
2710 return self._keys[m[alias]]
2711
2712 if alias.replace(' ', '') in m:
2713 return self._keys[m[alias.replace(' ', '')]]
2714
2715 raise KeyError(alias)
2716
2717 def _get_keys(self, alias):
2718 return [self._keys[m[alias]] for m in self._aliases if alias in m]

Callers 1

keyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected