diff emeraldtree/ElementTree.py @ 27:4dc29d2eac0e

Force QName to be unicode. * emeraldtree/ElementTree.py: Convert all input for QName to unicode. * emeraldtree/tests/test_ElementTree.py: Check if members of QName are unicode.
author Bastian Blank <bblank@thinkmo.de>
date Thu, 12 Jun 2008 20:57:22 +0200
parents eeb0eb69c1da
children 21cef3864c33
line wrap: on
line diff
--- a/emeraldtree/ElementTree.py	Sun Jun 08 12:40:21 2008 +0200
+++ b/emeraldtree/ElementTree.py	Thu Jun 12 20:57:22 2008 +0200
@@ -476,6 +476,7 @@
 
 class QName(object):
     def __init__(self, text, uri=None):
+        text = unicode(text)
         if text[0] == '{':
             if uri is not None:
                 raise ValueError