Force element attributes to be a dict, workaround for 2.4 xml sax bug.
Force element attributes to be a dict, workaround for 2.4 xml sax bug.


Index: pyglet/layout/content.py
===================================================================
--- pyglet/layout/content.py	(revision 573)
+++ pyglet/layout/content.py	(working copy)
@@ -143,10 +143,15 @@
     def __init__(self, document, name, attributes, parent, previous_sibling):
         self.document = document
         self.name = name
-        self.attributes = attributes
         self.parent = parent
         self.previous_sibling = previous_sibling

+        # Make attributes more like a dict
+        #self.attributes = attributes
+        self.attributes = {}
+        for key, value in attributes.items():
+            self.attributes[key] = value
+
     def add_child(self, element):
         if self.text:
             # Anonymous inline boxes, 9.2.2.1

--HG--
extra : convert_revision : svn%3A14d46d22-621c-0410-bb3d-6f67920f7d95/trunk%40577

infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore