]> git.sesse.net Git - xml-template/blobdiff - python/xmltemplate.py
Fix a potential bug in the C++0x cleaning.
[xml-template] / 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)