diff options
| author | 2014-04-10 13:37:02 +0200 | |
|---|---|---|
| committer | 2014-06-28 02:51:58 +0200 | |
| commit | 2ff2fb0495febe11d5015d2308d67e1d8048e597 (patch) | |
| tree | 2ae9d1da4a701fc6b3945ccc32dfbbf102b9c85a /module/lib/thrift/protocol | |
| parent | Localization badge (diff) | |
| download | pyload-2ff2fb0495febe11d5015d2308d67e1d8048e597.tar.xz | |
Some code cosmetics about commas, spaces and quotes
Merges #577
Diffstat (limited to 'module/lib/thrift/protocol')
| -rw-r--r-- | module/lib/thrift/protocol/TBinaryProtocol.py | 2 | ||||
| -rw-r--r-- | module/lib/thrift/protocol/TProtocol.py | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/module/lib/thrift/protocol/TBinaryProtocol.py b/module/lib/thrift/protocol/TBinaryProtocol.py index 50c6aa896..0cc44178c 100644 --- a/module/lib/thrift/protocol/TBinaryProtocol.py +++ b/module/lib/thrift/protocol/TBinaryProtocol.py @@ -239,7 +239,7 @@ class TBinaryProtocolAccelerated(TBinaryProtocol):    our C module to do the encoding, bypassing this object entirely.    We inherit from TBinaryProtocol so that the normal TBinaryProtocol    encoding can happen if the fastbinary module doesn't work for some -  reason.  (TODO(dreiss): Make this happen sanely in more cases.) +  reason. (TODO(dreiss): Make this happen sanely in more cases.)    In order to take advantage of the C module, just use    TBinaryProtocolAccelerated instead of TBinaryProtocol. 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 | 
