aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-02-14 14:55:20 +0000
committerJustus Winter <[email protected]>2017-02-14 15:33:37 +0000
commite17ab84129045512cf60c221ee43aa877507662f (patch)
tree01f84348c4a31b2b2ced875029e512a268b6e20d
parentpython: Add convenience functions for the home directory. (diff)
downloadgpgme-e17ab84129045512cf60c221ee43aa877507662f.tar.gz
gpgme-e17ab84129045512cf60c221ee43aa877507662f.zip
python: Nicer repr for user ids.
* lang/python/gpgme.i (_gpgme_user_id): Provide a nicer repr() for user ids. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/python/gpgme.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index c0993eed..792567fc 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -676,3 +676,7 @@ _gpg_unwrap_gpgme_ctx_t(PyObject *wrapped)
%extend _gpgme_key_sig {
genericrepr(KeySig)
};
+
+%extend _gpgme_user_id {
+ genericrepr(UID)
+};