Show More
@@ -209,9 +209,9 b' class posixfile_nt(object):' | |||
|
209 | 209 | |
|
210 | 210 | def __init__(self, name, mode='rb'): |
|
211 | 211 | access = 0 |
|
212 |
if 'r' in mode |
|
|
212 | if 'r' in mode: | |
|
213 | 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 | 215 | access |= win32file.GENERIC_WRITE |
|
216 | 216 | if 'r' in mode: |
|
217 | 217 | creation = win32file.OPEN_EXISTING |
General Comments 0
You need to be logged in to leave comments.
Login now