summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2018-12-04 20:27:15 +0300
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2018-12-05 02:40:24 +0300
commitfefa46173e506b0e4156e73a250d6915fe229223 (patch)
tree699eba368addd18a5fbf3cdd5a3a78b6f8229e1f
parent30ddb2cabcd6e24eaa7f73d1ec099ddff5e41646 (diff)
downloadgpgme-fefa46173e506b0e4156e73a250d6915fe229223.tar.gz
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 <dkg@fifthhorseman.net>
-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