Fix _unserialize of reply headers

This cleans up a number of warnings, and passes the sequence number
through correctly.

Signed-off-by: Peter Harris <pharris@opentext.com>
This commit is contained in:
Peter Harris 2010-09-22 23:15:38 -04:00
parent 29cca33b90
commit b672d1514c

View File

@ -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():