Show More
@@ -342,11 +342,7 b' class patchfile(object):' | |||||
342 | # result is a list of line numbers sorted based on distance |
|
342 | # result is a list of line numbers sorted based on distance | |
343 | # from linenum |
|
343 | # from linenum | |
344 |
|
344 | |||
345 | try: |
|
345 | cand = self.hash.get(l, []) | |
346 | cand = self.hash[l] |
|
|||
347 | except: |
|
|||
348 | return [] |
|
|||
349 |
|
||||
350 | if len(cand) > 1: |
|
346 | if len(cand) > 1: | |
351 | # resort our list of potentials forward then back. |
|
347 | # resort our list of potentials forward then back. | |
352 | cand.sort(key=lambda x: abs(x - linenum)) |
|
348 | cand.sort(key=lambda x: abs(x - linenum)) |
General Comments 0
You need to be logged in to leave comments.
Login now