Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.10.0
-
None
-
None
Description
When I look at the generated Python code, I see lines like the following repeated all over the place:
iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
Can't this be abstracted via a helper function and may be the version can be cached given that it is not going to change?