• Piotr Piastucki's avatar
    Simplifying diff chunk merging · f7c898e1
    Piotr Piastucki authored
    In _merge_blocks(), the value of last_diff is only used when one of the
    to-be-merged sequences is empty. However, in this situation, the
    newly-assigned value of block in _merge_diffs() is unused. As a result,
    _merge_blocks() need not be called when either len(using[0]) or
    len(using[1]) are 0, and can be significantly simplified.
diffutil.py 9.18 KB