##// END OF EJS Templates
posixfile_nt: '+' was understood as read mode instead of update.
Patrick Mezard -
r5067:73169e5d default
parent child Browse files
Show More
@@ -209,9 +209,9 b' class posixfile_nt(object):'
209
209
210 def __init__(self, name, mode='rb'):
210 def __init__(self, name, mode='rb'):
211 access = 0
211 access = 0
212 if 'r' in mode or '+' in mode:
212 if 'r' in mode:
213 access |= win32file.GENERIC_READ
213 access |= win32file.GENERIC_READ
214 if 'w' in mode or 'a' in mode:
214 if 'w' in mode or 'a' in mode or '+' in mode:
215 access |= win32file.GENERIC_WRITE
215 access |= win32file.GENERIC_WRITE
216 if 'r' in mode:
216 if 'r' in mode:
217 creation = win32file.OPEN_EXISTING
217 creation = win32file.OPEN_EXISTING
General Comments 0
You need to be logged in to leave comments. Login now