Browse Source

Fix building on Python 3.12 (fixes #312)

tags/v0.6.6
Ben Kurtovic 1 year ago
parent
commit
fc1440a7b3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/mwparserfromhell/parser/ctokenizer/tokenizer.c

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

@@ -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;
}



Loading…
Cancel
Save