Skip to content

Commit

Permalink
Fix building on Python 3.12 (fixes #312)
Browse files Browse the repository at this point in the history
  • Loading branch information
earwig committed Nov 10, 2023
1 parent 8bce6ff commit fc1440a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mwparserfromhell/parser/ctokenizer/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ init_tokenizer_text(TokenizerInput *text)
text->object = Py_None;
Py_INCREF(Py_None);
text->length = 0;
text->kind = PyUnicode_WCHAR_KIND;
text->kind = PyUnicode_1BYTE_KIND;
text->data = NULL;
}

Expand Down

0 comments on commit fc1440a

Please sign in to comment.