mercurial/pure/osutil.py
changeset 43503 313e3a279828
parent 43089 c59eb1560c44
child 43506 9f70512ae2cf
equal deleted inserted replaced
43502:c093cc6e6c99 43503:313e3a279828
   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,