From e74306a96556748f887628deddec544fe24b7be9 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Wed, 21 Feb 2007 05:38:12 +0000 Subject: [PATCH] Move constant defs into Thrift.py to avoid cirulcar includes Reviewed By: snakes git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665016 13f79535-47bb-0310-9956-ffa450edef68 --- lib/py/src/Thrift.py | 24 ++++++++++++++++++++++++ lib/py/src/protocol/TProtocol.py | 25 +------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/lib/py/src/Thrift.py b/lib/py/src/Thrift.py index 81689b70..72618902 100644 --- a/lib/py/src/Thrift.py +++ b/lib/py/src/Thrift.py @@ -1,3 +1,27 @@ +class TType: + STOP = 0 + VOID = 1 + BOOL = 2 + BYTE = 3 + I08 = 3 + DOUBLE = 4 + I16 = 6 + I32 = 8 + I64 = 10 + STRING = 11 + UTF7 = 11 + STRUCT = 12 + MAP = 13 + SET = 14 + LIST = 15 + UTF8 = 16 + UTF16 = 17 + +class TMessageType: + CALL = 1 + REPLY = 2 + EXCEPTION = 3 + class TProcessor: """Base class for procsessor, which works on two streams.""" diff --git a/lib/py/src/protocol/TProtocol.py b/lib/py/src/protocol/TProtocol.py index e35688e1..dcc84ce1 100644 --- a/lib/py/src/protocol/TProtocol.py +++ b/lib/py/src/protocol/TProtocol.py @@ -1,27 +1,4 @@ -from thrift.Thrift import TException - -class TType: - STOP = 0 - VOID = 1 - BOOL = 2 - BYTE = 3 - I08 = 3 - DOUBLE = 4 - I16 = 6 - I32 = 8 - I64 = 10 - STRING = 11 - UTF7 = 11 - STRUCT = 12 - MAP = 13 - SET = 14 - LIST = 15 - UTF8 = 16 - UTF16 = 17 - -class TMessageType: - CALL = 1 - REPLY = 2 +from thrift.Thrift import * class TProtocolException(TException): -- 2.17.1