comparison mercurial/pure/bdiff.py @ 34435:5326e4ef1dab

style: never put multiple statements on one line Differential Revision: https://phab.mercurial-scm.org/D905
author Alex Gaynor <agaynor@mozilla.com>
date Fri, 29 Sep 2017 15:49:20 +0000
parents 0e8b0b9a7acc
children 29dd37a418aa
comparison
equal deleted inserted replaced
34434:884b595f5195 34435:5326e4ef1dab
58 s = "".join(b) 58 s = "".join(b)
59 return s and (struct.pack(">lll", 0, 0, len(s)) + s) 59 return s and (struct.pack(">lll", 0, 0, len(s)) + s)
60 60
61 bin = [] 61 bin = []
62 p = [0] 62 p = [0]
63 for i in a: p.append(p[-1] + len(i)) 63 for i in a:
64 p.append(p[-1] + len(i))
64 65
65 d = difflib.SequenceMatcher(None, a, b).get_matching_blocks() 66 d = difflib.SequenceMatcher(None, a, b).get_matching_blocks()
66 d = _normalizeblocks(a, b, d) 67 d = _normalizeblocks(a, b, d)
67 la = 0 68 la = 0
68 lb = 0 69 lb = 0