D3568: py3: use pycompat.bytestr() instead of str() in extensions.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed May 16 07:42:11 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9d44c71bd892: py3: use pycompat.bytestr() instead of str() in extensions.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3568?vs=8707&id=8713

REVISION DETAIL
  https://phab.mercurial-scm.org/D3568

AFFECTED FILES
  mercurial/extensions.py

CHANGE DETAILS

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -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):



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list