summaryrefslogtreecommitdiff
path: root/dbus_bindings/conn-methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus_bindings/conn-methods.c')
-rw-r--r--dbus_bindings/conn-methods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus_bindings/conn-methods.c b/dbus_bindings/conn-methods.c
index 62bdf86..f6ffc5b 100644
--- a/dbus_bindings/conn-methods.c
+++ b/dbus_bindings/conn-methods.c
@@ -567,7 +567,7 @@ Connection_get_unix_fd (Connection *self, PyObject *unused UNUSED)
ok = dbus_connection_get_unix_fd (self->conn, &fd);
Py_END_ALLOW_THREADS
if (!ok) Py_RETURN_NONE;
- return NATIVEINT_FROMLONG(fd);
+ return PyLong_FromLong(fd);
}
PyDoc_STRVAR(Connection_get_peer_unix_user__doc__,
@@ -979,7 +979,7 @@ Connection_list_exported_child_objects (Connection *self, PyObject *args,
return NULL;
}
for (kid_ptr = kids; *kid_ptr; kid_ptr++) {
- PyObject *tmp = NATIVESTR_FROMSTR(*kid_ptr);
+ PyObject *tmp = PyUnicode_FromString(*kid_ptr);
if (!tmp) {
Py_CLEAR(ret);