From b672d1514c88e119f3aaeded8c8a488cad36db52 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Wed, 22 Sep 2010 23:15:38 -0400 Subject: [PATCH] Fix _unserialize of reply headers This cleans up a number of warnings, and passes the sequence number through correctly. Signed-off-by: Peter Harris --- src/c_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/c_client.py b/src/c_client.py index 1f3277a..91719b7 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -925,8 +925,9 @@ def _c_serialize_helper_fields(context, self, prev_field_was_variable = False for field in self.fields: - if not ((field.wire and not field.auto) or field.visible): - continue + if not field.visible: + if not ((field.wire and not field.auto) or 'unserialize' == context): + continue # switch/bitcase: fixed size fields must be considered explicitly if field.type.fixed_size(): -- 2.34.1