diff options
Diffstat (limited to '_dbus_bindings/message.c')
-rw-r--r-- | _dbus_bindings/message.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/_dbus_bindings/message.c b/_dbus_bindings/message.c index 149d9c4..32bb84a 100644 --- a/_dbus_bindings/message.c +++ b/_dbus_bindings/message.c @@ -462,7 +462,7 @@ Message_get_member(Message *self, PyObject *unused UNUSED) if (!c_str) { Py_RETURN_NONE; } - return PyUnicode_FromString(c_str); + return NATIVESTR_FROMSTR(c_str); } PyDoc_STRVAR(Message_has_member__doc__, @@ -537,7 +537,7 @@ Message_get_path_decomposed(Message *self, PyObject *unused UNUSED) Py_RETURN_NONE; } for (ptr = paths; *ptr; ptr++) { - PyObject *str = PyUnicode_FromString(*ptr); + PyObject *str = NATIVESTR_FROMSTR(*ptr); if (!str) { Py_CLEAR(ret); @@ -623,7 +623,7 @@ Message_get_sender(Message *self, PyObject *unused UNUSED) if (!c_str) { Py_RETURN_NONE; } - return PyUnicode_FromString(c_str); + return NATIVESTR_FROMSTR(c_str); } PyDoc_STRVAR(Message_has_sender__doc__, @@ -669,7 +669,7 @@ Message_get_destination(Message *self, PyObject *unused UNUSED) if (!c_str) { Py_RETURN_NONE; } - return PyUnicode_FromString(c_str); + return NATIVESTR_FROMSTR(c_str); } PyDoc_STRVAR(Message_has_destination__doc__, @@ -714,7 +714,7 @@ Message_get_interface(Message *self, PyObject *unused UNUSED) if (!c_str) { Py_RETURN_NONE; } - return PyUnicode_FromString(c_str); + return NATIVESTR_FROMSTR(c_str); } PyDoc_STRVAR(Message_has_interface__doc__, @@ -759,7 +759,7 @@ Message_get_error_name(Message *self, PyObject *unused UNUSED) if (!c_str) { Py_RETURN_NONE; } - return PyUnicode_FromString(c_str); + return NATIVESTR_FROMSTR(c_str); } PyDoc_STRVAR(Message_set_error_name__doc__, |