comparison mercurial/pure/diffhelpers.py @ 12387:4f8067c94729

cleanup: use x in (a, b) instead of x == a or x == b
author Brodie Rao <brodie@bitheap.org>
date Thu, 23 Sep 2010 00:02:31 -0500
parents f61dced1367a
children 80214358ac88
comparison
equal deleted inserted replaced
12386:8eedf53547b8 12387:4f8067c94729
39 hline = l[:-2] 39 hline = l[:-2]
40 else: 40 else:
41 hline = l[:-1] 41 hline = l[:-1]
42 c = hline[0] 42 c = hline[0]
43 43
44 if c == " " or c == "+": 44 if c in " +":
45 b[-1] = hline[1:] 45 b[-1] = hline[1:]
46 if c == " " or c == "-": 46 if c in " -":
47 a[-1] = hline 47 a[-1] = hline
48 hunk[-1] = hline 48 hunk[-1] = hline
49 return 0 49 return 0
50 50
51 51