changeset 36488:724ddf2444a7

py3: use util.forcebytestr to convert str to bytes Differential Revision: https://phab.mercurial-scm.org/D2498
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 28 Feb 2018 19:55:25 +0530
parents dabf86721200
children 4b9e9e3f450c
files mercurial/exchange.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Sun Feb 25 11:00:53 2018 -0800
+++ b/mercurial/exchange.py	Wed Feb 28 19:55:25 2018 +0530
@@ -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