

def write(self, oprot):
    if ((oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated) and (self.thrift_spec is not None) and (fastbinary is not None)):
        oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
        return
    oprot.writeStructBegin('ping_result')
    if (self.success is not None):
        oprot.writeFieldBegin('success', TType.I32, 0)
        oprot.writeI32(self.success)
        oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()

dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/gen-py/djangothrift_test_gen/TestService.py ping_result.write/original