Mercurial > public > mercurial-scm > hg
comparison mercurial/pure/osutil.py @ 16686:67964cda8701
cleanup: "not x in y" -> "x not in y"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:57 +0200 |
parents | ee553e6cd8c4 |
children | 72fa4ef2245f |
comparison
equal
deleted
inserted
replaced
16685:43d55088415a | 16686:67964cda8701 |
---|---|
117 flags = _O_BINARY | 117 flags = _O_BINARY |
118 else: | 118 else: |
119 flags = _O_TEXT | 119 flags = _O_TEXT |
120 | 120 |
121 m0 = mode[0] | 121 m0 = mode[0] |
122 if m0 == 'r' and not '+' in mode: | 122 if m0 == 'r' and '+' not in mode: |
123 flags |= _O_RDONLY | 123 flags |= _O_RDONLY |
124 access = _GENERIC_READ | 124 access = _GENERIC_READ |
125 else: | 125 else: |
126 # work around http://support.microsoft.com/kb/899149 and | 126 # work around http://support.microsoft.com/kb/899149 and |
127 # set _O_RDWR for 'w' and 'a', even if mode has no '+' | 127 # set _O_RDWR for 'w' and 'a', even if mode has no '+' |