Mercurial > public > mercurial-scm > hg
comparison mercurial/httppeer.py @ 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 | 588f1e9a4d16 |
children | 69921d02daaf |
comparison
equal
deleted
inserted
replaced
41314:15fd3069caa6 | 41315:a9b609fbe39c |
---|---|
814 def requirecap(self, name, purpose): | 814 def requirecap(self, name, purpose): |
815 if self.capable(name): | 815 if self.capable(name): |
816 return | 816 return |
817 | 817 |
818 raise error.CapabilityError( | 818 raise error.CapabilityError( |
819 _('cannot %s; client or remote repository does not support the %r ' | 819 _('cannot %s; client or remote repository does not support the ' |
820 'capability') % (purpose, name)) | 820 '\'%s\' capability') % (purpose, name)) |
821 | 821 |
822 # End of ipeercapabilities. | 822 # End of ipeercapabilities. |
823 | 823 |
824 def _call(self, name, **args): | 824 def _call(self, name, **args): |
825 with self.commandexecutor() as e: | 825 with self.commandexecutor() as e: |