equal
deleted
inserted
replaced
152 |
152 |
153 checkforbidden(added) |
153 checkforbidden(added) |
154 # combine the changed lists into one list for sorting |
154 # combine the changed lists into one list for sorting |
155 work = [(x, False) for x in added] |
155 work = [(x, False) for x in added] |
156 work.extend((x, True) for x in removed) |
156 work.extend((x, True) for x in removed) |
157 # this could use heapq.merge() (from python2.6+) or equivalent |
157 # this could use heapq.merge() (from Python 2.6+) or equivalent |
158 # since the lists are already sorted |
158 # since the lists are already sorted |
159 work.sort() |
159 work.sort() |
160 |
160 |
161 delta = [] |
161 delta = [] |
162 dstart = None |
162 dstart = None |