xmlclass/xmlclass.py
changeset 1759 56e7f4a11046
parent 1758 845ca626db09
child 1763 bcc07ff2362c
--- a/xmlclass/xmlclass.py	Thu Aug 17 09:55:39 2017 +0300
+++ b/xmlclass/xmlclass.py	Thu Aug 17 10:04:24 2017 +0300
@@ -598,7 +598,7 @@
         "extract": ExtractTag,
         "generate": GenerateTag,
         "initial": lambda: None,
-        "check": lambda x: x is None or infos["minOccurs"] == 0 and value == True
+        "check": lambda x: x is None or infos["minOccurs"] == 0 and value
     }