aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/add-userid.py
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/examples/howto/add-userid.py')
-rwxr-xr-xlang/python/examples/howto/add-userid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/examples/howto/add-userid.py b/lang/python/examples/howto/add-userid.py
index 85b90de5..945a8096 100755
--- a/lang/python/examples/howto/add-userid.py
+++ b/lang/python/examples/howto/add-userid.py
@@ -53,7 +53,7 @@ else:
fpr = "".join(fpr0.split())
-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)