mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
python: use right func when PyString_FromStringAndSize is not there
Fixes commit 9d25b4e564.
Thanks to: Matteo Cafasso
This commit is contained in:
@@ -374,7 +374,7 @@ guestfs_int_py_fromstringsize (const char *str, size_t size)
|
||||
#ifdef HAVE_PYSTRING_ASSTRING
|
||||
return PyString_FromStringAndSize (str, size);
|
||||
#else
|
||||
return PyString_FromStringAndSize (str, size);
|
||||
return PyUnicode_FromStringAndSize (str, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user