--- a/mercurial/pure/osutil.py Sat May 12 16:00:53 2012 +0200
+++ b/mercurial/pure/osutil.py Sat May 12 16:00:57 2012 +0200
@@ -119,7 +119,7 @@
flags = _O_TEXT
m0 = mode[0]
- if m0 == 'r' and not '+' in mode:
+ if m0 == 'r' and '+' not in mode:
flags |= _O_RDONLY
access = _GENERIC_READ
else: