Mercurial > hg
changeset 41315:a9b609fbe39c
httppeer: use %s for formatting
This prevents a b'' from appearing in Python 3 output. We keep the
single quotes for backwards compatibility.
Differential Revision: https://phab.mercurial-scm.org/D5647
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 22 Jan 2019 16:58:48 -0800 |
parents | 15fd3069caa6 |
children | 8df3471931cc |
files | mercurial/httppeer.py mercurial/repository.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/httppeer.py Tue Jan 22 16:54:56 2019 -0800 +++ b/mercurial/httppeer.py Tue Jan 22 16:58:48 2019 -0800 @@ -816,8 +816,8 @@ return raise error.CapabilityError( - _('cannot %s; client or remote repository does not support the %r ' - 'capability') % (purpose, name)) + _('cannot %s; client or remote repository does not support the ' + '\'%s\' capability') % (purpose, name)) # End of ipeercapabilities.
--- a/mercurial/repository.py Tue Jan 22 16:54:56 2019 -0800 +++ b/mercurial/repository.py Tue Jan 22 16:58:48 2019 -0800 @@ -346,8 +346,8 @@ return raise error.CapabilityError( - _('cannot %s; remote repository does not support the %r ' - 'capability') % (purpose, name)) + _('cannot %s; remote repository does not support the ' + '\'%s\' capability') % (purpose, name)) class iverifyproblem(interfaceutil.Interface): """Represents a problem with the integrity of the repository.