Show More
@@ -250,6 +250,10 b' def patchtext(bin):' | |||||
250 | def patch(a, bin): |
|
250 | def patch(a, bin): | |
251 | return mpatch.patches(a, [bin]) |
|
251 | return mpatch.patches(a, [bin]) | |
252 |
|
252 | |||
|
253 | # similar to difflib.SequenceMatcher.get_matching_blocks | |||
|
254 | def get_matching_blocks(a, b): | |||
|
255 | return [(d[0], d[2], d[1] - d[0]) for d in bdiff.blocks(a, b)] | |||
|
256 | ||||
253 | patches = mpatch.patches |
|
257 | patches = mpatch.patches | |
254 | patchedsize = mpatch.patchedsize |
|
258 | patchedsize = mpatch.patchedsize | |
255 | textdiff = bdiff.bdiff |
|
259 | textdiff = bdiff.bdiff |
General Comments 0
You need to be logged in to leave comments.
Login now