summaryrefslogtreecommitdiff
path: root/python/qpid/codec.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-11-07 20:55:35 +0000
committerGordon Sim <gsim@apache.org>2007-11-07 20:55:35 +0000
commit0a6761806f55ad18d65e2c22cd18a08e2ec5a149 (patch)
treee68f5ba20c7096cd1740131d4ab1a9326dfe0053 /python/qpid/codec.py
parentc9900041bf70ac76a4eb8753965fe24426ba8cd4 (diff)
downloadqpid-python-0a6761806f55ad18d65e2c22cd18a08e2ec5a149.tar.gz
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
Diffstat (limited to 'python/qpid/codec.py')
-rw-r--r--python/qpid/codec.py4
1 files changed, 2 insertions, 2 deletions
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