diff --git a/coolamqp/framing/compilation/xml_tags.py b/coolamqp/framing/compilation/xml_tags.py index 082cf7a9e9826a69ef6c4fe49a7640c01a8d28b2..89c91cd45ac6e312bfdb55d51805ad0eb3c92765 100644 --- a/coolamqp/framing/compilation/xml_tags.py +++ b/coolamqp/framing/compilation/xml_tags.py @@ -51,7 +51,7 @@ class Field(BaseObject): _name, _ValueField(('domain', 'type'), 'type', str), _SimpleField('label', default=None), - _SimpleField('reserved', lambda x: bool(int(x)), default=0), + _SimpleField('reserved', _boolint, default=0), _ComputedField('basic_type', lambda elem: elem.attrib.get('type', '') == elem.attrib.get('name', '')), _docs ]