Skip to content
Snippets Groups Projects
Commit 79a12651 authored by Bryan O'Sullivan's avatar Bryan O'Sullivan
Browse files

win32: clarify comment regarding use of fdopen

parent 91f1fe78
No related branches found
No related tags found
No related merge requests found
......@@ -270,8 +270,9 @@
with win32file.FILE_SHARE_DELETE. this flag does not exist on
windows < nt, so do not use this class there.'''
# tried to use win32file._open_osfhandle to pass fd to os.fdopen,
# but does not work at all. wrap win32 file api instead.
# ideally, we could use win32file._open_osfhandle and avoid this
# class entirely, but we would need the win32 _fdopen function,
# which is not exported by the win32file module.
def __init__(self, name, mode='rb'):
self.closed = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment