##// END OF EJS Templates
py3: use bytes() to cast to immutable bytes in pure.bdiff.bdiff()
Yuya Nishihara -
r31641:f2b334e6 default
parent child Browse files
Show More
@@ -54,12 +54,9 b' def _normalizeblocks(a, b, blocks):'
54 54 r.append(prev)
55 55 return r
56 56
57 def _tostring(c):
58 return str(c)
59
60 57 def bdiff(a, b):
61 a = _tostring(a).splitlines(True)
62 b = _tostring(b).splitlines(True)
58 a = bytes(a).splitlines(True)
59 b = bytes(b).splitlines(True)
63 60
64 61 if not a:
65 62 s = "".join(b)
General Comments 0
You need to be logged in to leave comments. Login now