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