X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fxmltemplate.py;h=b24d7642ccda30a0173ccd345fc413a313e19dbd;hb=83a41af3311ec494205205ec093ffff0aad56fd0;hp=eb50625a600550b2e8bf38d992db0f8cf82366e1;hpb=83e98596f1532628bff5d122735577d9615098e5;p=xml-template 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)