equal
deleted
inserted
replaced
255 creation = _CREATE_ALWAYS |
255 creation = _CREATE_ALWAYS |
256 elif m0 == b'a': |
256 elif m0 == b'a': |
257 creation = _OPEN_ALWAYS |
257 creation = _OPEN_ALWAYS |
258 flags |= _O_APPEND |
258 flags |= _O_APPEND |
259 else: |
259 else: |
260 raise ValueError(r"invalid mode: %s" % pycompat.sysstr(mode)) |
260 raise ValueError("invalid mode: %s" % pycompat.sysstr(mode)) |
261 |
261 |
262 fh = _kernel32.CreateFileA( |
262 fh = _kernel32.CreateFileA( |
263 name, |
263 name, |
264 access, |
264 access, |
265 _FILE_SHARE_READ | _FILE_SHARE_WRITE | _FILE_SHARE_DELETE, |
265 _FILE_SHARE_READ | _FILE_SHARE_WRITE | _FILE_SHARE_DELETE, |