fastexport: simplify code
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 11 Oct 2023 00:43:24 +0200
changeset 50994 a97f2b50219b
parent 50993 12c308c55e53
child 50995 80c243eab724
fastexport: simplify code
hgext/fastexport.py
--- a/hgext/fastexport.py	Wed Oct 11 02:02:46 2023 +0200
+++ b/hgext/fastexport.py	Wed Oct 11 00:43:24 2023 +0200
@@ -45,9 +45,9 @@
             % rev
         )
     if user_person:
-        return b'"' + user_person + b'" <' + user_email + b'>'
+        return b'"%s" <%s>' % (user_person, user_email)
     else:
-        return b"<" + user_email + b">"
+        return b"<%s>" % user_email
 
 
 def convert_to_git_date(date):