Update of /cvsroot/pywin32/pywin32/com/win32com/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10941/com/win32com/server
Modified Files:
util.py
Log Message:
Return values from FileStream's IStream methods
Index: util.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/util.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** util.py 26 May 2004 09:41:18 -0000 1.5
--- util.py 7 Aug 2007 06:38:11 -0000 1.6
***************
*** 201,204 ****
--- 201,205 ----
def Write(self, data):
self.file.write(data)
+ return len(data)
def Clone(self):
***************
*** 206,214 ****
def CopyTo(self, dest, cb):
! dest.Write(file.read(cb))
def Seek(self, offset, origin):
# how convient that the 'origin' values are the same as the CRT :)
self.file.seek(offset, origin)
def _wrap(self, ob):
--- 207,219 ----
def CopyTo(self, dest, cb):
! data=self.file.read(cb)
! cbread=len(data)
! dest.Write(data) ## ??? Write does not currently return the length ???
! return cbread, cbread
def Seek(self, offset, origin):
# how convient that the 'origin' values are the same as the CRT :)
self.file.seek(offset, origin)
+ return self.file.tell()
def _wrap(self, ob):
|