Mercurial > hg
comparison mercurial/patch.py @ 41624:3751595ec45e
py3: make sure __repr__ returns str
No test fails but I found it while debugging test-commit-interactive-curses.t
failure.
# skip-blame because just r'' prefix
Differential Revision: https://phab.mercurial-scm.org/D5878
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 07 Feb 2019 16:43:42 +0300 |
parents | 74f53d3bd685 |
children | d4c9eebdd72d |
comparison
equal
deleted
inserted
replaced
41623:7c4e205f71ca | 41624:3751595ec45e |
---|---|
361 | 361 |
362 def ispatching(self, afile, bfile): | 362 def ispatching(self, afile, bfile): |
363 return self._ispatchinga(afile) and self._ispatchingb(bfile) | 363 return self._ispatchinga(afile) and self._ispatchingb(bfile) |
364 | 364 |
365 def __repr__(self): | 365 def __repr__(self): |
366 return "<patchmeta %s %r>" % (self.op, self.path) | 366 return r"<patchmeta %s %r>" % (self.op, self.path) |
367 | 367 |
368 def readgitpatch(lr): | 368 def readgitpatch(lr): |
369 """extract git-style metadata about patches from <patchname>""" | 369 """extract git-style metadata about patches from <patchname>""" |
370 | 370 |
371 # Filter patch for git information | 371 # Filter patch for git information |