From e17ab84129045512cf60c221ee43aa877507662f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 14 Feb 2017 15:55:20 +0100 Subject: [PATCH] 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 --- lang/python/gpgme.i | 4 ++++ 1 file changed, 4 insertions(+) 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) +};