fix typos
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 05 Oct 2017 16:46:29 +0300
changeset 1849 6811021e3d94
parent 1848 201e0f1896c4
child 1850 614396cbffbf
fix typos
graphics/SFC_Objects.py
xmlclass/xsdschema.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)
--- 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"],