Show More
@@ -209,7 +209,7 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: |
|
212 | if 'r' in mode or '+' in mode: | |
213 | access |= win32file.GENERIC_READ |
|
213 | access |= win32file.GENERIC_READ | |
214 | if 'w' in mode or 'a' in mode or '+' in mode: |
|
214 | if 'w' in mode or 'a' in mode or '+' in mode: | |
215 | access |= win32file.GENERIC_WRITE |
|
215 | access |= win32file.GENERIC_WRITE |
General Comments 0
You need to be logged in to leave comments.
Login now