jamesturk / jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.
https://jamesturk.github.io/jellyfish/
MIT License
2.04k stars 157 forks source link

PyArg_ParseTuple("u#") is deprecated #131

Closed methane closed 2 years ago

methane commented 4 years ago

https://docs.python.org/3/c-api/arg.html#strings-and-buffers

Deprecated since version 3.3, will be removed in version 4.0: Part of the old-style Py_UNICODE API; please migrate to using PyUnicode_AsWideCharString().

Please use 'U' and PyUnicode_AsWideCharString instead.

nijel commented 2 years ago

In Python 3.10 this produces:

DeprecationWarning: getargs: The 'u' format is deprecated. Use 'U' instead.