xmlclass/xsdschema.py
changeset 1767 c74815729afd
parent 1765 ccf59c1f0b45
child 1768 691083b5682a
--- a/xmlclass/xsdschema.py	Thu Aug 17 17:25:17 2017 +0300
+++ b/xmlclass/xsdschema.py	Fri Aug 18 12:36:31 2017 +0300
@@ -588,11 +588,11 @@
     if basetypeinfos["type"] == SIMPLETYPE:
         contenttypeinfos = simpleContent.copy()
         simpleContent.pop("base")
-    elif basetypeinfos["type"] == COMPLEXTYPE and \
-         len(basetypeinfos["elements"]) == 1 and \
-         basetypeinfos["elements"][0]["name"] == "content" and \
-         "elmt_type" in basetypeinfos["elements"][0] and \
-         basetypeinfos["elements"][0]["elmt_type"]["type"] == SIMPLETYPE:
+    elif (basetypeinfos["type"] == COMPLEXTYPE and
+          len(basetypeinfos["elements"]) == 1 and
+          basetypeinfos["elements"][0]["name"] == "content" and
+          "elmt_type" in basetypeinfos["elements"][0] and
+          basetypeinfos["elements"][0]["elmt_type"]["type"] == SIMPLETYPE):
         contenttypeinfos = simpleContent.copy()
         contenttypeinfos["base"] = basetypeinfos["elements"][0]["elmt_type"]
     else: