##// END OF EJS Templates
util: log readinto() I/O...
Gregory Szorc -
r36648:29128309 default
parent child Browse files
Show More
@@ -749,6 +749,15 b' class fileobjectobserver(object):'
749 self.fh.write('%s> readline() -> %d' % (self.name, len(res)))
749 self.fh.write('%s> readline() -> %d' % (self.name, len(res)))
750 self._writedata(res)
750 self._writedata(res)
751
751
752 def readinto(self, res, dest):
753 if not self.reads:
754 return
755
756 self.fh.write('%s> readinto(%d) -> %r' % (self.name, len(dest),
757 res))
758 data = dest[0:res] if res is not None else b''
759 self._writedata(data)
760
752 def write(self, res, data):
761 def write(self, res, data):
753 if not self.writes:
762 if not self.writes:
754 return
763 return
General Comments 0
You need to be logged in to leave comments. Login now