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