Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 37663:fc114a16a484
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 01:59:55 +0530 |
parents | a168799687e5 |
children | 2a8ad00b8aed |
line wrap: on
line diff
--- a/mercurial/exchange.py Sat Apr 14 01:58:44 2018 +0530 +++ b/mercurial/exchange.py Sat Apr 14 01:59:55 2018 +0530 @@ -2291,7 +2291,7 @@ 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 '