413
418
def make_delta(source_bytes, target_bytes):
414
419
"""Create a delta from source to target."""
416
421
raise TypeError('source is not a str')
418
423
raise TypeError('target is not a str')
419
424
line_locations = LinesDeltaIndex(osutils.split_lines(source_bytes))
420
425
delta, _ = line_locations.make_delta(osutils.split_lines(target_bytes),