1.1 --- a/MoinMoin/parser/text_moin_wiki.py Sat Jan 24 03:13:41 2009 +0100
1.2 +++ b/MoinMoin/parser/text_moin_wiki.py Wed Feb 11 02:34:33 2009 +0100
1.3 @@ -692,7 +692,7 @@
1.4 def _transclude_repl(self, word, groups):
1.5 """Handles transcluding content, usually embedding images."""
1.6 target = groups.get('transclude_target', '')
1.7 - target = wikiutil.url_unquote(target, want_unicode=True)
1.8 + target = wikiutil.url_unquote(target)
1.9 desc = groups.get('transclude_desc', '') or ''
1.10 params = groups.get('transclude_params', u'') or u''
1.11 acceptable_attrs_img = ['class', 'title', 'longdesc', 'width', 'height', 'align', ] # no style because of JS
1.12 @@ -723,7 +723,7 @@
1.13
1.14 elif m.group('attach_scheme'):
1.15 scheme = m.group('attach_scheme')
1.16 - url = wikiutil.url_unquote(m.group('attach_addr'), want_unicode=True)
1.17 + url = wikiutil.url_unquote(m.group('attach_addr'))
1.18 if scheme == 'attachment':
1.19 mt = wikiutil.MimeType(filename=url)
1.20 if mt.major == 'text':
1.21 @@ -894,7 +894,7 @@
1.22
1.23 elif mt.group('attach_scheme'):
1.24 scheme = mt.group('attach_scheme')
1.25 - url = wikiutil.url_unquote(mt.group('attach_addr'), want_unicode=True)
1.26 + url = wikiutil.url_unquote(mt.group('attach_addr'))
1.27 tag_attrs, query_args = self._get_params(params,
1.28 tag_attrs={'title': desc, },
1.29 acceptable_attrs=acceptable_attrs)