From db86176c085063f1b5227dc3e99c003ef443f0fc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 15 Aug 2013 00:41:24 -0400 Subject: [PATCH] wiki_markup attr should be unicode, not bytes --- mwparserfromhell/parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwparserfromhell/parser/tokenizer.c b/mwparserfromhell/parser/tokenizer.c index f6eea84..c08fb11 100644 --- a/mwparserfromhell/parser/tokenizer.c +++ b/mwparserfromhell/parser/tokenizer.c @@ -1697,7 +1697,7 @@ static int Tokenizer_emit_style_tag(Tokenizer* self, const char* tag, { PyObject *markup, *kwargs; - markup = PyBytes_FromString(ticks); + markup = PyUnicode_FromString(ticks); if (!markup) return -1; kwargs = PyDict_New();