Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37662:5340daa85c62 | 37663:fc114a16a484 |
---|---|
2289 repo.ui.debug('filtering %s because not a stream clone\n' % | 2289 repo.ui.debug('filtering %s because not a stream clone\n' % |
2290 entry['URL']) | 2290 entry['URL']) |
2291 continue | 2291 continue |
2292 | 2292 |
2293 except error.InvalidBundleSpecification as e: | 2293 except error.InvalidBundleSpecification as e: |
2294 repo.ui.debug(str(e) + '\n') | 2294 repo.ui.debug(stringutil.forcebytestr(e) + '\n') |
2295 continue | 2295 continue |
2296 except error.UnsupportedBundleSpecification as e: | 2296 except error.UnsupportedBundleSpecification as e: |
2297 repo.ui.debug('filtering %s because unsupported bundle ' | 2297 repo.ui.debug('filtering %s because unsupported bundle ' |
2298 'spec: %s\n' % ( | 2298 'spec: %s\n' % ( |
2299 entry['URL'], stringutil.forcebytestr(e))) | 2299 entry['URL'], stringutil.forcebytestr(e))) |