Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 36518: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 | 2831d918e1b4 |
children | df7b7d5033a5 |
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