From 28f51a84388a970d65594e8389a5e44b952a9fc7 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sun, 8 Oct 2017 10:20:51 +0200
Subject: [PATCH] boolints

---
 coolamqp/framing/compilation/xml_tags.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coolamqp/framing/compilation/xml_tags.py b/coolamqp/framing/compilation/xml_tags.py
index 082cf7a..89c91cd 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
     ]
-- 
GitLab