mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ffb5160f3c
commit
6272e4db9d
@ -208,6 +208,7 @@ static PyObject *unicode_to_number(PyObject *src) {
|
||||
const char *utf8_data;
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
utf8_data = PyUnicode_AsUTF8(src);
|
||||
if (!utf8_data) return NULL;
|
||||
#else
|
||||
PyObject *utf_8_temp = PyUnicode_AsUTF8String(src);
|
||||
if (utf_8_temp == NULL) return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user