xmlclass/xsdschema.py
changeset 1757 0de89da92ee0
parent 1750 acf02488f37f
child 1762 fcc406143e5b
--- a/xmlclass/xsdschema.py	Wed Aug 16 16:37:45 2017 +0300
+++ b/xmlclass/xsdschema.py	Wed Aug 16 17:27:58 2017 +0300
@@ -281,7 +281,7 @@
                     raise ValueError("\"minExclusive\" must be lesser than \"maxExclusive\"!")
             elif facettype == "whiteSpace":
                 if basevalue == "collapse" and value in ["preserve", "replace"] or basevalue == "replace" and value == "preserve":
-                   raise ValueError("\"whiteSpace\" is incompatible with \"whiteSpace\" defined in base type!")
+                    raise ValueError("\"whiteSpace\" is incompatible with \"whiteSpace\" defined in base type!")
             elif facettype == "totalDigits":
                 if facets.has_key("fractionDigits") and value <= facets["fractionDigits"][0]:
                     raise ValueError("\"fractionDigits\" must be lesser than or equal to \"totalDigits\"!")