Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
12386:8eedf53547b8 | 12387:4f8067c94729 |
---|---|
175 if "ko" in flags: | 175 if "ko" in flags: |
176 keywords = self.re_keywords_old | 176 keywords = self.re_keywords_old |
177 elif "k" in flags: | 177 elif "k" in flags: |
178 keywords = self.re_keywords | 178 keywords = self.re_keywords |
179 | 179 |
180 elif code == "text" or code == "binary": | 180 elif code in ("text", "binary"): |
181 contents += data | 181 contents += data |
182 | 182 |
183 if mode is None: | 183 if mode is None: |
184 raise IOError(0, "bad stat") | 184 raise IOError(0, "bad stat") |
185 | 185 |