mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
stdpy: return number of bytes from write() method
This commit is contained in:
parent
986b803e71
commit
0b52241e95
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user