Skip to content

Commit

Permalink
Change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bryant committed Aug 21, 2018
1 parent 1ba32f9 commit 8e838ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/align_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ def get_edits_split(edits):
return new_edits

# all-merge: Merge all adjacent edits of any operation type, except M.
def get_edits_group_type(edits):
def get_edits_group_all(edits):
new_edits = []
for op, group in groupby(edits, lambda x: True if x[0] == "M" else False):
if not op:
new_edits.extend(merge_edits(list(group)))
return new_edits

# all-equal: Merge all edits of the same operation type.
def get_edits_group_all(edits):
def get_edits_group_type(edits):
new_edits = []
for op, group in groupby(edits, lambda x: x[0]):
if op != "M":
Expand Down

0 comments on commit 8e838ef

Please sign in to comment.