From 2ff2fb0495febe11d5015d2308d67e1d8048e597 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 10 Apr 2014 13:37:02 +0200 Subject: Some code cosmetics about commas, spaces and quotes Merges #577 --- module/lib/thrift/protocol/TProtocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/lib/thrift/protocol/TProtocol.py') diff --git a/module/lib/thrift/protocol/TProtocol.py b/module/lib/thrift/protocol/TProtocol.py index e23774784..595ca5ae6 100644 --- a/module/lib/thrift/protocol/TProtocol.py +++ b/module/lib/thrift/protocol/TProtocol.py @@ -202,7 +202,7 @@ class TProtocolBase: # tuple of: ( 'reader method' name, is_container boolean, 'writer_method' name ) _TTYPE_HANDLERS = ( - (None, None, False), # 0 == TType,STOP + (None, None, False), # 0 == TType, STOP (None, None, False), # 1 == TType.VOID # TODO: handle void? ('readBool', 'writeBool', False), # 2 == TType.BOOL ('readByte', 'writeByte', False), # 3 == TType.BYTE and I08 @@ -298,7 +298,7 @@ class TProtocolBase: v_val = val_reader() else: v_val = self.readFieldByTType(val_ttype, val_spec) - # this raises a TypeError with unhashable keys types. i.e. d=dict(); d[[0,1]] = 2 fails + # this raises a TypeError with unhashable keys types. i.e. d=dict(); d[[0, 1]] = 2 fails results[k_val] = v_val self.readMapEnd() return results -- cgit v1.2.3