diff -r c1e5b9f19483 -r c74815729afd xmlclass/xsdschema.py --- 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: