]> git.sesse.net Git - xml-template/commitdiff
Patch from xim: Fixed a bug where Unicode strings would not get counted as strings...
authorsgunderson@bigfoot.com <>
Sun, 5 Jul 2009 08:22:45 +0000 (10:22 +0200)
committersgunderson@bigfoot.com <>
Sun, 5 Jul 2009 08:22:45 +0000 (10:22 +0200)
python/xmltemplate.py

index eb50625a600550b2e8bf38d992db0f8cf82366e1..b24d7642ccda30a0173ccd345fc413a313e19dbd 100644 (file)
@@ -8,7 +8,7 @@ def process_file(filename, obj, clean = True):
        return doc
 
 def process(node, obj, clean = True):
-       if isinstance(obj, str):                        # overwrite
+       if isinstance(obj, basestring):                 # overwrite
                while not node.firstChild is None:
                        node.removeChild(node.firstChild)
                doc = _get_document_element(node)