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