diff hgext/convert/p4.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 ad0a334eef16
children 4cdaf1adafc8
line wrap: on
line diff
--- a/hgext/convert/p4.py	Thu Sep 23 10:59:21 2010 +0200
+++ b/hgext/convert/p4.py	Thu Sep 23 00:02:31 2010 -0500
@@ -177,7 +177,7 @@
                     elif "k" in flags:
                         keywords = self.re_keywords
 
-            elif code == "text" or code == "binary":
+            elif code in ("text", "binary"):
                 contents += data
 
         if mode is None: