diff mercurial/dagparser.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 26d86a6cf2af
children 525fdb738975
line wrap: on
line diff
--- a/mercurial/dagparser.py	Thu Sep 23 10:59:21 2010 +0200
+++ b/mercurial/dagparser.py	Thu Sep 23 00:02:31 2010 -0500
@@ -219,7 +219,7 @@
                 yield 'n', (r, [p1])
                 p1 = r
                 r += 1
-        elif c == '*' or c == '/':
+        elif c in '*/':
             if c == '*':
                 c = nextch()
             c, pref = nextstring(c)