mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-22 15:19:36 -06:00
stdpy: return number of bytes from write() method
This commit is contained in:
@@ -304,6 +304,7 @@ class StreamIOWrapper(io.IOBase):
|
||||
self.__stream.clear() # clear eof flag
|
||||
self.__write(b)
|
||||
self.__lastWrite = True
|
||||
return len(b)
|
||||
|
||||
def writelines(self, lines):
|
||||
if not self.__writer:
|
||||
|
||||
Reference in New Issue
Block a user