summaryrefslogtreecommitdiff
path: root/dbus_bindings/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus_bindings/exceptions.c')
-rw-r--r--dbus_bindings/exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus_bindings/exceptions.c b/dbus_bindings/exceptions.c
index 508537a..2940c2b 100644
--- a/dbus_bindings/exceptions.c
+++ b/dbus_bindings/exceptions.c
@@ -39,7 +39,7 @@ import_exception(void)
return TRUE;
}
- name = NATIVESTR_FROMSTR("dbus.exceptions");
+ name = PyUnicode_FromString("dbus.exceptions");
if (name == NULL) {
return FALSE;
}
@@ -83,7 +83,7 @@ DBusPyException_ConsumeError(DBusError *error)
}
if (error->name) {
- PyObject *name = NATIVESTR_FROMSTR(error->name);
+ PyObject *name = PyUnicode_FromString(error->name);
int ret;
if (!name)