From 3410d39314be774eba5ca154e5e9633526dc0508 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sun, 5 Jul 2009 10:22:45 +0200 Subject: [PATCH] Patch from xim: Fixed a bug where Unicode strings would not get counted as strings in the Python version. --- python/xmltemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/xmltemplate.py b/python/xmltemplate.py index eb50625..b24d764 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -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) -- 2.39.2