mercurial/pure/osutil.py
changeset 16686 67964cda8701
parent 16474 ee553e6cd8c4
child 17429 72fa4ef2245f
--- 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: