aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/testCMSgetkey.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-10-13 10:05:59 +0000
committerJustus Winter <[email protected]>2016-10-13 11:19:47 +0000
commit1e6073ffa98db2c265adbcf0dbbe70c067a910f0 (patch)
treeab90784e5c11048d11188cde73377f541e8d22a8 /lang/python/examples/testCMSgetkey.py
parentpython: Fix example. (diff)
downloadgpgme-1e6073ffa98db2c265adbcf0dbbe70c067a910f0.tar.gz
gpgme-1e6073ffa98db2c265adbcf0dbbe70c067a910f0.zip
python: Return public keys by default.
* lang/python/pyme/core.py (Core.get_key): Return public keys by default, improve docstring. * lang/python/examples/testCMSgetkey.py: Update example. * lang/python/examples/verifydetails.py: Likewise. GnuPG-bug-id: 2751 Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/examples/testCMSgetkey.py')
-rw-r--r--lang/python/examples/testCMSgetkey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/testCMSgetkey.py b/lang/python/examples/testCMSgetkey.py
index 4467b6cc..62c35d26 100644
--- a/lang/python/examples/testCMSgetkey.py
+++ b/lang/python/examples/testCMSgetkey.py
@@ -28,7 +28,7 @@ if len(sys.argv) != 2:
sys.exit("fingerprint or unique key ID for gpgme_get_key()")
with pyme.Context(protocol=pyme.constants.PROTOCOL_CMS) as c:
- key = c.get_key(sys.argv[1], False)
+ key = c.get_key(sys.argv[1])
print("got key: ", key.subkeys[0].fpr)
for uid in key.uids: