--- a/xmlclass/xsdschema.py Mon Aug 14 23:38:28 2017 +0300
+++ b/xmlclass/xsdschema.py Tue Aug 15 12:17:51 2017 +0300
@@ -668,7 +668,7 @@
# Attribute elements
def ReduceAnyAttribute(factory, attributes, elements):
- return {"type" : "anyAttribute"}
+ return {"type": "anyAttribute"}
def ReduceAttribute(factory, attributes, elements):
@@ -1313,7 +1313,7 @@
"reduce": ReduceComplexType
},
- "documentation": {"struct" : """
+ "documentation": {"struct": """
<documentation
source = anyURI
xml:lang = language
@@ -1504,7 +1504,7 @@
"reduce": ReduceKeyRef
},
- "length": {"struct" : """
+ "length": {"struct": """
<length
fixed = boolean : false
id = ID
@@ -1730,7 +1730,7 @@
"reduce": ReduceSequence
},
- "simpleContent": {"struct" : """
+ "simpleContent": {"struct": """
<simpleContent
id = ID
{any attributes with non-schema namespace . . .}>
@@ -1744,7 +1744,7 @@
"reduce": ReduceSimpleContent
},
- "simpleType": {"struct" : """
+ "simpleType": {"struct": """
<simpleType
final = (#all | List of (list | union | restriction))
id = ID
@@ -1760,7 +1760,7 @@
"reduce": ReduceSimpleType
},
- "totalDigits": {"struct" : """
+ "totalDigits": {"struct": """
<totalDigits
fixed = boolean : false
id = ID
@@ -1806,7 +1806,7 @@
"reduce": ReduceUnique
},
- "whiteSpace": {"struct" : """
+ "whiteSpace": {"struct": """
<whiteSpace
fixed = boolean : false
id = ID
@@ -2112,7 +2112,7 @@
"basename": "string",
"extract": GetAttributeValue,
"facets": STRING_FACETS,
- "generate": GenerateSimpleTypeXMLText(lambda x : x),
+ "generate": GenerateSimpleTypeXMLText(lambda x: x),
"initial": lambda: "",
"check": lambda x: isinstance(x, (StringType, UnicodeType))
},
@@ -2122,7 +2122,7 @@
"basename": "normalizedString",
"extract": GetNormalizedString,
"facets": STRING_FACETS,
- "generate": GenerateSimpleTypeXMLText(lambda x : x),
+ "generate": GenerateSimpleTypeXMLText(lambda x: x),
"initial": lambda: "",
"check": lambda x: isinstance(x, (StringType, UnicodeType))
},
@@ -2132,7 +2132,7 @@
"basename": "token",
"extract": GetToken,
"facets": STRING_FACETS,
- "generate": GenerateSimpleTypeXMLText(lambda x : x),
+ "generate": GenerateSimpleTypeXMLText(lambda x: x),
"initial": lambda: "",
"check": lambda x: isinstance(x, (StringType, UnicodeType))
},
@@ -2304,7 +2304,7 @@
"facets": NUMBER_FACETS,
"generate": GenerateFloatXMLText(["INF", "-INF", "NaN"]),
"initial": lambda: 0.,
- "check": lambda x: {"INF" : True, "-INF" : True, "NaN" : True}.get(x, isinstance(x, (IntType, FloatType)))
+ "check": lambda x: {"INF": True, "-INF": True, "NaN": True}.get(x, isinstance(x, (IntType, FloatType)))
},
"double": {
@@ -2314,7 +2314,7 @@
"facets": NUMBER_FACETS,
"generate": GenerateFloatXMLText(["INF", "-INF", "NaN"]),
"initial": lambda: 0.,
- "check": lambda x: {"INF" : True, "-INF" : True, "NaN" : True}.get(x, isinstance(x, (IntType, FloatType)))
+ "check": lambda x: {"INF": True, "-INF": True, "NaN": True}.get(x, isinstance(x, (IntType, FloatType)))
},
"boolean": {
@@ -2322,7 +2322,7 @@
"basename": "boolean",
"extract": GetBoolean,
"facets": GenerateDictFacets(["pattern", "whiteSpace"]),
- "generate": GenerateSimpleTypeXMLText(lambda x:{True : "true", False : "false"}[x]),
+ "generate": GenerateSimpleTypeXMLText(lambda x:{True: "true", False: "false"}[x]),
"initial": lambda: False,
"check": lambda x: isinstance(x, BooleanType)
},