Mercurial > hg-stable
changeset 8329:79a12651d46b
win32: clarify comment regarding use of fdopen
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Mar 2009 13:14:35 -0700 |
parents | 91f1fe78454c |
children | 7de68012f86e |
files | mercurial/win32.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/win32.py Thu Mar 26 13:13:48 2009 -0700 +++ b/mercurial/win32.py Thu Mar 26 13:14:35 2009 -0700 @@ -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