Browse Source

wiki_markup attr should be unicode, not bytes

tags/v0.3
Ben Kurtovic 11 years ago
parent
commit
db86176c08
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.c

+ 1
- 1
mwparserfromhell/parser/tokenizer.c View File

@@ -1697,7 +1697,7 @@ static int Tokenizer_emit_style_tag(Tokenizer* self, const char* tag,
{ {
PyObject *markup, *kwargs; PyObject *markup, *kwargs;


markup = PyBytes_FromString(ticks);
markup = PyUnicode_FromString(ticks);
if (!markup) if (!markup)
return -1; return -1;
kwargs = PyDict_New(); kwargs = PyDict_New();


Loading…
Cancel
Save