From d9d19f0d1f72b2d981004f6492ab213a5e2b1a06 Mon Sep 17 00:00:00 2001 From: benjaoming Date: Sun, 3 Feb 2013 17:42:18 +0100 Subject: [PATCH] fix python 2.5 unknown elementree method --- wiki/plugins/links/mdx/urlize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wiki/plugins/links/mdx/urlize.py b/wiki/plugins/links/mdx/urlize.py index 07e55c23..ea52d20b 100644 --- a/wiki/plugins/links/mdx/urlize.py +++ b/wiki/plugins/links/mdx/urlize.py @@ -74,7 +74,8 @@ class UrlizePattern(markdown.inlinepatterns.Pattern): el = markdown.util.etree.Element("a") el.set('href', url) el.set('target', '_blank') - el.extend([icon, span_text]) + el.append(icon) + el.append(span_text) return el class UrlizeExtension(markdown.Extension): -- 2.45.2