# HG changeset patch # User Andrey Skvortsov # Date 1507211189 -10800 # Node ID 6811021e3d94ddecc62e4d83b40995b06e6f5822 # Parent 201e0f1896c4cdad660dec30c9587ad3b5ebe453 fix typos diff -r 201e0f1896c4 -r 6811021e3d94 graphics/SFC_Objects.py --- a/graphics/SFC_Objects.py Thu Oct 05 16:41:31 2017 +0300 +++ b/graphics/SFC_Objects.py Thu Oct 05 16:46:29 2017 +0300 @@ -2000,7 +2000,7 @@ highlight_items = self.Highlights.items() for number, action_highlights in highlight_items: action_highlight_items = action_highlights.items() - for name, attribute_highlights in action_highlights: + for name, attribute_highlights in action_highlight_items: attribute_highlights = ClearHighlights(attribute_highlights, highlight_type) if len(attribute_highlights) == 0: action_highlights.pop(name) diff -r 201e0f1896c4 -r 6811021e3d94 xmlclass/xsdschema.py --- a/xmlclass/xsdschema.py Thu Oct 05 16:41:31 2017 +0300 +++ b/xmlclass/xsdschema.py Thu Oct 05 16:46:29 2017 +0300 @@ -784,7 +784,7 @@ annotations, children = factory.ReduceElements(elements) for child in children: - if children["maxOccurs"] == "unbounded" or children["maxOccurs"] > 1: + if child["maxOccurs"] == "unbounded" or child["maxOccurs"] > 1: raise ValueError("\"all\" item can't have \"maxOccurs\" attribute greater than 1!") return {"type": "all", "elements": children, "minOccurs": attributes["minOccurs"],