(self)
| 13 | self.trans.write(str) |
| 14 | |
| 15 | def readString(self): |
| 16 | len = self.readI32() |
| 17 | str = self.trans.readAll(len) |
| 18 | try: |
| 19 | str = str.decode("utf8", "ignore") |
| 20 | except: |
| 21 | pass |
| 22 | |
| 23 | return str |
| 24 | |
| 25 | |
| 26 | class ProtocolFactory(TBinaryProtocol.TBinaryProtocolFactory): |