comparison mercurial/help.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 c407b4ca666e
children 4cdaf1adafc8
comparison
equal deleted inserted replaced
12386:8eedf53547b8 12387:4f8067c94729
23 line = file.readline() 23 line = file.readline()
24 if not line: 24 if not line:
25 break 25 break
26 26
27 start = line[:3] 27 start = line[:3]
28 if start == '"""' or start == "'''": 28 if start in ('"""', "'''"):
29 line = line[3:] 29 line = line[3:]
30 while line: 30 while line:
31 if line.rstrip().endswith(start): 31 if line.rstrip().endswith(start):
32 line = line.split(start)[0] 32 line = line.split(start)[0]
33 if line: 33 if line: