##// END OF EJS Templates
util: cast memoryview to bytes...
Gregory Szorc -
r41429:b141b524 default
parent child Browse files
Show More
@@ -789,6 +789,12 b' class fileobjectobserver(baseproxyobserv'
789 789 res))
790 790
791 791 data = dest[0:res] if res is not None else b''
792
793 # _writedata() uses "in" operator and is confused by memoryview because
794 # characters are ints on Python 3.
795 if isinstance(data, memoryview):
796 data = data.tobytes()
797
792 798 self._writedata(data)
793 799
794 800 def write(self, res, data):
General Comments 0
You need to be logged in to leave comments. Login now