Add doctest and docstring for GPG.list_sigs().
parent
f64b0eef03
commit
6cbed40f84
13
src/gnupg.py
13
src/gnupg.py
|
@ -1059,10 +1059,15 @@ use_agent: %s
|
||||||
def list_sigs(self, *keyids):
|
def list_sigs(self, *keyids):
|
||||||
"""Get the signatures for each of the ``keyids``.
|
"""Get the signatures for each of the ``keyids``.
|
||||||
|
|
||||||
The GnuPG option '--show-photos', according to the GnuPG manual, "does
|
>>> import gnupg
|
||||||
not work with --with-colons", but since we can't rely on all versions
|
>>> gpg = gnupg.GPG(homedir="./tests/doctest")
|
||||||
of GnuPG to explicitly handle this correctly, we should probably
|
>>> key_input = gpg.gen_key_input()
|
||||||
include it in the args.
|
>>> key = gpg.gen_key(key_input)
|
||||||
|
>>> assert key.fingerprint
|
||||||
|
|
||||||
|
:rtype: dict
|
||||||
|
:returns: A dictionary whose keys are the original keyid parameters,
|
||||||
|
and whose values are lists of signatures.
|
||||||
"""
|
"""
|
||||||
raise NotImplemented("Functionality for '--list-sigs' not implemented.")
|
raise NotImplemented("Functionality for '--list-sigs' not implemented.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue