pulkit updated this revision to Diff 6244.
pulkit retitled this revision from "py3: use pycompat.bytestr to convert str to 
bytes" to "py3: use util.forcebytestr to convert str to bytes".

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/exchange.py

CHANGE DETAILS

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



To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to