From patchwork Wed Feb 28 22:29:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2498: py3: use pycompat.bytestr to convert str to bytes From: phabricator X-Patchwork-Id: 28496 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 28 Feb 2018 22:29:34 +0000 pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2498 AFFECTED FILES mercurial/exchange.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-devel 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') % + pycompat.bytestr(e.reason)) return False