From 0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 27 Jun 2011 23:45:45 +0200 Subject: thrift 0.7.0 from trunk, patched for low mem usage --- module/lib/thrift/Thrift.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'module/lib/thrift/Thrift.py') diff --git a/module/lib/thrift/Thrift.py b/module/lib/thrift/Thrift.py index 91728a776..a96351276 100644 --- a/module/lib/thrift/Thrift.py +++ b/module/lib/thrift/Thrift.py @@ -38,6 +38,25 @@ class TType: UTF8 = 16 UTF16 = 17 + _VALUES_TO_NAMES = ( 'STOP', + 'VOID', + 'BOOL', + 'BYTE', + 'DOUBLE', + None, + 'I16', + None, + 'I32', + None, + 'I64', + 'STRING', + 'STRUCT', + 'MAP', + 'SET', + 'LIST', + 'UTF8', + 'UTF16' ) + class TMessageType: CALL = 1 REPLY = 2 -- cgit v1.2.3