py3: use pycompat.bytestr() instead of str() in extensions.py
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 27 Apr 2018 21:54:37 +0530
changeset 38020 9d44c71bd892
parent 38019 2f406142d7b4
child 38021 538e850ae737
py3: use pycompat.bytestr() instead of str() in extensions.py Differential Revision: https://phab.mercurial-scm.org/D3568
mercurial/extensions.py
--- a/mercurial/extensions.py	Wed May 16 07:58:02 2018 +0530
+++ b/mercurial/extensions.py	Fri Apr 27 21:54:37 2018 +0530
@@ -727,7 +727,7 @@
     else:
         version = ''
     if isinstance(version, (list, tuple)):
-        version = '.'.join(str(o) for o in version)
+        version = '.'.join(pycompat.bytestr(o) for o in version)
     return version
 
 def ismoduleinternal(module):