python: use the more modern PyCapsule over PyCObject (RhBug:623864).
authorAles Kozumplik <akozumpl@redhat.com>
Tue, 15 Nov 2011 14:49:33 +0000 (15:49 +0100)
committerAles Kozumplik <akozumpl@redhat.com>
Fri, 18 Nov 2011 09:53:53 +0000 (10:53 +0100)
commitc87ad03260fea33da6d64f65709981b06d4e135a
tree58ed613c057c9b624970e0772e4d90a6fbf70300
parentcd68e2b27e1f98a54c6eae3ae3638b069ce1d9fa
python: use the more modern PyCapsule over PyCObject (RhBug:623864).

- rpm.header.new() will still keep accepting PyCObject for now in case a
  client library depends on this.
- involves macro trickery to make rpm buildable against python 2.6 still.
python/header-py.c
python/rpmsystem-py.h
python/spec-py.c