Mercurial > hg
comparison mercurial/repository.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 | b2de94e59702 |
children | 69921d02daaf |
comparison
equal
deleted
inserted
replaced
41314:15fd3069caa6 | 41315:a9b609fbe39c |
---|---|
344 def requirecap(self, name, purpose): | 344 def requirecap(self, name, purpose): |
345 if self.capable(name): | 345 if self.capable(name): |
346 return | 346 return |
347 | 347 |
348 raise error.CapabilityError( | 348 raise error.CapabilityError( |
349 _('cannot %s; remote repository does not support the %r ' | 349 _('cannot %s; remote repository does not support the ' |
350 'capability') % (purpose, name)) | 350 '\'%s\' capability') % (purpose, name)) |
351 | 351 |
352 class iverifyproblem(interfaceutil.Interface): | 352 class iverifyproblem(interfaceutil.Interface): |
353 """Represents a problem with the integrity of the repository. | 353 """Represents a problem with the integrity of the repository. |
354 | 354 |
355 Instances of this interface are emitted to describe an integrity issue | 355 Instances of this interface are emitted to describe an integrity issue |