Mercurial > hatta-flask
changeset 2357:3b20d5ad1c54
Make sure the keys are always strings
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sun, 14 Oct 2012 21:47:09 +0200 |
| parents | 804a8c31a2ad |
| children | 6054265fa9ca |
| files | hatta/parser.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hatta/parser.py Sun Oct 14 21:42:44 2012 +0200 +++ b/hatta/parser.py Sun Oct 14 21:47:09 2012 +0200 @@ -357,7 +357,8 @@ link_text, chunk = link_text.split('#', 1) match = self.image_re.match(link_text) if match: - params = match.groupdict() + params = dict((str(k), v) for (k, v) in + match.groupdict().iteritems()) image = self._line_image(**params) return self.wiki_link(link_target, link_text, image=image) return self.wiki_link(link_target, link_text)
