aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/create-key.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-12-05 14:50:52 +0000
committerBen McGinnes <[email protected]>2018-12-05 14:50:52 +0000
commitdc5600d306f808767068bad5117232fc3d35ac43 (patch)
treecf30c1648d73aed25ae258c04d9dd8086b70ef73 /lang/python/examples/howto/create-key.py
parentpython: windows c and cython (diff)
downloadgpgme-dc5600d306f808767068bad5117232fc3d35ac43.tar.gz
gpgme-dc5600d306f808767068bad5117232fc3d35ac43.zip
python: examples
* cut some of then poor len usage.
Diffstat (limited to 'lang/python/examples/howto/create-key.py')
-rwxr-xr-xlang/python/examples/howto/create-key.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/howto/create-key.py b/lang/python/examples/howto/create-key.py
index f7da2069..9058c194 100755
--- a/lang/python/examples/howto/create-key.py
+++ b/lang/python/examples/howto/create-key.py
@@ -52,7 +52,7 @@ elif os.path.exists(homedir) is True:
else:
pass
-if len(uid_cmnt) > 0:
+if uid_cmnt:
userid = "{0} ({1}) <{2}>".format(uid_name, uid_cmnt, uid_email)
else:
userid = "{0} <{2}>".format(uid_name, uid_email)