From: sgunderson@bigfoot.com <> Date: Thu, 22 Sep 2011 00:15:41 +0000 (+0200) Subject: Merge. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=92404d2f2d49f6c5b1ccee0bfbc77c86051077f9;hp=cc0c274ab48363f5a590bcd1b283d7aec01aeae7;p=xml-template Merge. --- diff --git a/python/xmltemplate.py b/python/xmltemplate.py index b24d764..182b8e4 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -63,7 +63,7 @@ def process(node, obj, clean = True): if not processed: process(child, obj, clean) - elif isinstance(obj, list): # repeat + elif hasattr(obj, '__iter__'): # repeat doc = _get_document_element(node) frag = doc.createElement("temporary-fragment") # ugh