##// END OF EJS Templates
verify: fix exception formatting bug in Python 3...
Augie Fackler -
r36595:d85ef895 default
parent child Browse files
Show More
@@ -70,9 +70,10 b' class verifier(object):'
70 self.errors += 1
70 self.errors += 1
71
71
72 def exc(self, linkrev, msg, inst, filename=None):
72 def exc(self, linkrev, msg, inst, filename=None):
73 if not str(inst):
73 fmsg = pycompat.bytestr(inst)
74 inst = repr(inst)
74 if not fmsg:
75 self.err(linkrev, "%s: %s" % (msg, inst), filename)
75 fmsg = pycompat.byterepr(inst)
76 self.err(linkrev, "%s: %s" % (msg, fmsg), filename)
76
77
77 def checklog(self, obj, name, linkrev):
78 def checklog(self, obj, name, linkrev):
78 if not len(obj) and (self.havecl or self.havemf):
79 if not len(obj) and (self.havecl or self.havemf):
General Comments 0
You need to be logged in to leave comments. Login now