##// END OF EJS Templates
mdiff: turn the comment above _unidiff into a docstring
Denis Laxalde -
r31268:4fba2147 default
parent child Browse files
Show More
@@ -253,9 +253,8 b' def unidiff(a, ad, b, bd, fn1, fn2, opts'
253
253
254 return "".join(l)
254 return "".join(l)
255
255
256 # creates a headerless unified diff
257 # t1 and t2 are the text to be diffed
258 def _unidiff(t1, t2, opts=defaultopts):
256 def _unidiff(t1, t2, opts=defaultopts):
257 """Yield hunks of a headerless unified diff from t1 and t2 texts."""
259 l1 = splitnewlines(t1)
258 l1 = splitnewlines(t1)
260 l2 = splitnewlines(t2)
259 l2 = splitnewlines(t2)
261 def contextend(l, len):
260 def contextend(l, len):
General Comments 0
You need to be logged in to leave comments. Login now