Patchwork D2663: py3: use util.forcebytestr to convert testedwith value to bytes

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 8:18 p.m.
Message ID <d4966fc46edc79b838aa31fa75ea2cd9@localhost.localdomain>
Download mbox | patch
Permalink /patch/28983/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 8:18 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3fdba7fb264d: py3: use util.forcebytestr to convert testedwith value to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2663?vs=6598&id=6604

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

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -990,7 +990,7 @@ 
     if worst[0] is not None:
         name, testedwith, report = worst
         if not isinstance(testedwith, (bytes, str)):
-            testedwith = '.'.join([str(c) for c in testedwith])
+            testedwith = '.'.join([util.forcebytestr(c) for c in testedwith])
         warning = (_('** Unknown exception encountered with '
                      'possibly-broken third-party extension %s\n'
                      '** which supports versions %s of Mercurial.\n'