# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-13 20:29:55 # Node ID fc114a16a48412bf9d98baa88ac154538a45cb1d # Parent 5340daa85c62dfd00f945b4260d654bf0a4dbe5d py3: use stringutil.forcebytestr() instead of str() We need to convert errors to bytes using stringutil.forcebytestr() Differential Revision: https://phab.mercurial-scm.org/D3324 diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -2291,7 +2291,7 @@ def filterclonebundleentries(repo, entri continue except error.InvalidBundleSpecification as e: - repo.ui.debug(str(e) + '\n') + repo.ui.debug(stringutil.forcebytestr(e) + '\n') continue except error.UnsupportedBundleSpecification as e: repo.ui.debug('filtering %s because unsupported bundle '