From 0a6761806f55ad18d65e2c22cd18a08e2ec5a149 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 7 Nov 2007 20:55:35 +0000 Subject: Fix for QPID-639: c++ now includes sizes for all structs (enabled the same in python & java) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592895 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/codec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/qpid') diff --git a/python/qpid/codec.py b/python/qpid/codec.py index 6399ad2a5d..a3663773a9 100644 --- a/python/qpid/codec.py +++ b/python/qpid/codec.py @@ -434,7 +434,7 @@ class Codec: raise ValueError("invalid width: %s" % width) def encode_struct(self, type, s): - if False and type.size: + if type.size: enc = StringIO() codec = Codec(enc, self.spec) codec.encode_struct_body(type, s) @@ -446,7 +446,7 @@ class Codec: self.encode_struct_body(type, s) def decode_struct(self, type): - if False and type.size: + if type.size: size = self.dec_num(type.size) if size == 0: return None -- cgit v1.2.1