##// END OF EJS Templates
patch: fix header.__repr__() to not have `b''` prefixes in file names...
Matt Harbison -
r44396:0671f0a1 default
parent child Browse files
Show More
@@ -963,7 +963,9 b' class header(object):'
963 return self.files()[-1]
963 return self.files()[-1]
964
964
965 def __repr__(self):
965 def __repr__(self):
966 return '<header %s>' % (' '.join(map(repr, self.files())))
966 return '<header %s>' % (
967 ' '.join(pycompat.rapply(pycompat.fsdecode, self.files()))
968 )
967
969
968 def isnewfile(self):
970 def isnewfile(self):
969 return any(self.newfile_re.match(h) for h in self.header)
971 return any(self.newfile_re.match(h) for h in self.header)
General Comments 0
You need to be logged in to leave comments. Login now