Mercurial > bitten > bitten-test
diff bitten/queue.py @ 911:0cf576cea845
Make platform rules matching case-insensitive. Fixes #334.
Patch with test by Anatoly Techtonik. Thanks!
author | osimons |
---|---|
date | Mon, 16 May 2011 21:57:27 +0000 |
parents | ed77e3e1c43f |
children |
line wrap: on
line diff
--- a/bitten/queue.py +++ b/bitten/queue.py @@ -184,7 +184,8 @@ for propname, pattern in ifilter(None, platform.rules): try: propvalue = properties.get(propname) - if not propvalue or not re.match(pattern, propvalue): + if not propvalue or not re.match(pattern, + propvalue, re.I): match = False break except re.error: