comparison mercurial/patch.py @ 43912:727cf6acadfe

patch: make __repr__() return str Caught by pytype: line 969, in __repr__: Function bytes.join was called with the wrong arguments [wrong-arg-types] Expected: (self, iterable: Iterable[bytes]) Actually passed: (self, iterable: Iterator[str]) Differential Revision: https://phab.mercurial-scm.org/D7682
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 16 Dec 2019 23:27:17 -0500
parents be8552f25cab
children 0671f0a19d93
comparison
equal deleted inserted replaced
43911:4d59cc8bda65 43912:727cf6acadfe
961 961
962 def filename(self): 962 def filename(self):
963 return self.files()[-1] 963 return self.files()[-1]
964 964
965 def __repr__(self): 965 def __repr__(self):
966 return b'<header %s>' % (b' '.join(map(repr, self.files()))) 966 return '<header %s>' % (' '.join(map(repr, self.files())))
967 967
968 def isnewfile(self): 968 def isnewfile(self):
969 return any(self.newfile_re.match(h) for h in self.header) 969 return any(self.newfile_re.match(h) for h in self.header)
970 970
971 def special(self): 971 def special(self):