diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-12-05 16:08:40 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2013-12-11 16:12:54 +0000 |
commit | a933b7f5d10d9f00b3df5e80dedef3f235c34e4e (patch) | |
tree | af4f444383e07703fc1a8715510bf4e9807edff0 /libvirt-lxc-override.c | |
parent | aac76e7630f5899e221672ef63b46baa066e1b8e (diff) | |
download | libvirt-python-a933b7f5d10d9f00b3df5e80dedef3f235c34e4e.tar.gz |
override: Replace Py{Int,Long}_FromLong with helpers
Replace use of the PyInt_FromLong and PyLong_FromLongLong
with libvirt_{int,uint,longlong,ulonglong}Wrap helpers.
This isolates the need for Python3 specific code in one
place.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'libvirt-lxc-override.c')
-rw-r--r-- | libvirt-lxc-override.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-lxc-override.c b/libvirt-lxc-override.c index 60b41d8..ba97551 100644 --- a/libvirt-lxc-override.c +++ b/libvirt-lxc-override.c @@ -89,7 +89,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED, for (i = 0; i < c_retval; i++) { PyObject *item = NULL; - if ((item = PyInt_FromLong(fdlist[i])) == NULL) + if ((item = libvirt_intWrap(fdlist[i])) == NULL) goto error; if (PyList_Append(py_retval, item) < 0) { |