Github user nsuke commented on a diff in the pull request:
https://github.com/apache/thrift/pull/1274#discussion_r147555909
--- Diff: lib/py/src/protocol/TProtocol.py ---
@@ -118,6 +118,8 @@ def writeDouble(self, dub):
pass
def writeString(self, str_val):
+ if isinstance(str_val, bytes):
+ str_val = str_val.decode('utf8')
--- End diff --
This would break py2---
