]> git.ipfire.org Git - thirdparty/libvirt.git/commit
python: Use PyCapsule API if available
authorCole Robinson <crobinso@redhat.com>
Thu, 2 Dec 2010 17:15:10 +0000 (12:15 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 10 Jan 2011 20:18:05 +0000 (15:18 -0500)
commit4254dfea78e72c109c9e78727a5c5146be372654
tree33a1a1745fcb3a6c125dfe34646e92dc6dd84ed7
parent8f3b6bc2ddb0b8154b0a11a94d6cbcccc460abc9
python: Use PyCapsule API if available

On Fedore 14, virt-manager spews a bunch of warnings to the console:

/usr/lib64/python2.7/site-packages/libvirt.py:1781: PendingDeprecationWarning: The CObject type is marked Pending Deprecation in Python 2.7.  Please use capsule objects instead.

Have libvirt use the capsule API if available. I've verified this compiles
fine on older python (2.6 in RHEL6 which doesn't have capsules), and
virt-manager seems to function fine.
python/typewrappers.c