##// END OF EJS Templates
patch: catch unexpected case in _inlinediff...
Matthieu Laneuville -
r35312:12ce62c7 default
parent child Browse files
Show More
@@ -2575,6 +2575,9 b' def _inlinediff(s1, s2, operation):'
2575 2575 token = '+'
2576 2576 s2 = s2[1:]
2577 2577 s1 = s1[1:]
2578 else:
2579 raise error.ProgrammingError("Case not expected, operation = %s" %
2580 operation)
2578 2581
2579 2582 s = difflib.ndiff(re.split(br'(\W)', s2), re.split(br'(\W)', s1))
2580 2583 for part in s:
General Comments 0
You need to be logged in to leave comments. Login now