changeset 44964:d96d8bbbedb1 stable

py3: fix bytes iteration
author Manuel Jacob <me@manueljacob.de>
date Mon, 15 Jun 2020 03:30:24 +0200
parents 4888adfb6235
children 8439351d3208
files hgext/convert/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Mon Jun 15 03:09:55 2020 +0200
+++ b/hgext/convert/common.py	Mon Jun 15 03:30:24 2020 +0200
@@ -87,7 +87,7 @@
 def encodeargs(args):
     def encodearg(s):
         lines = base64.encodestring(s)
-        lines = [l.splitlines()[0] for l in lines]
+        lines = [l.splitlines()[0] for l in pycompat.iterbytestr(lines)]
         return b''.join(lines)
 
     s = pickle.dumps(args)