aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/src/core.py
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2018-12-04 17:27:15 +0000
committerAndre Heinecke <[email protected]>2018-12-05 10:46:09 +0000
commit5d8b4f74891af22379899ccee9e8ee849144eee3 (patch)
treebacd8a7fe47d1a73a47e63efa0d62f36ce6601c8 /lang/python/src/core.py
parentpython: gpg.Context.decrypt verify_sigs and sink_result are bools (diff)
downloadgpgme-5d8b4f74891af22379899ccee9e8ee849144eee3.tar.gz
gpgme-5d8b4f74891af22379899ccee9e8ee849144eee3.zip
python: Clarify the meaning of ctx.decrypt(verify=[])
* lang/python/src/core.py (Context.decrypt): docstring clarification of what it means to pass an empty list to the verify argument. Signed-off-by: Daniel Kahn Gillmor <[email protected]>
Diffstat (limited to 'lang/python/src/core.py')
-rw-r--r--lang/python/src/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/python/src/core.py b/lang/python/src/core.py
index 87cfd6bf..3bd6f717 100644
--- a/lang/python/src/core.py
+++ b/lang/python/src/core.py
@@ -342,7 +342,10 @@ class Context(GpgmeWrapper):
Decrypt the given ciphertext and verify any signatures. If
VERIFY is an iterable of keys, the ciphertext must be signed
- by all those keys, otherwise an error is raised.
+ by all those keys, otherwise an error is raised. Note: if
+ VERIFY is an empty iterable, that is treated the same as
+ passing verify=True (that is, do verify signatures, but no
+ specific keys are required).
If the ciphertext is symmetrically encrypted using a
passphrase, that passphrase can be given as parameter, using a