Patchwork D2498: py3: use util.forcebytestr to convert str to bytes

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 1:40 p.m.
Message ID <16d83d70accda403f24dc7d6fca83948@localhost.localdomain>
Download mbox | patch
Permalink /patch/28547/
State Not Applicable
Headers show

Comments

phabricator - March 1, 2018, 1:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG724ddf2444a7: py3: use util.forcebytestr to convert str to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2498?vs=6244&id=6245

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

AFFECTED FILES
  mercurial/exchange.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -2258,6 +2258,7 @@ 
             ui.warn(_('HTTP error fetching bundle: %s\n') %
                     util.forcebytestr(e))
         except urlerr.urlerror as e:
-            ui.warn(_('error fetching bundle: %s\n') % e.reason)
+            ui.warn(_('error fetching bundle: %s\n') %
+                    util.forcebytestr(e.reason))
 
         return False