changeset 50994:a97f2b50219b

fastexport: simplify code
author Joerg Sonnenberger <joerg@bec.de>
date Wed, 11 Oct 2023 00:43:24 +0200
parents 12c308c55e53
children 80c243eab724
files hgext/fastexport.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):