[libvirt] [PATCH python] Rewrite libvirt_charPtrUnwrap to work with Python 3.0->3.2
Eric Blake
eblake at redhat.com
Thu Dec 12 22:46:19 UTC 2013
On 12/12/2013 11:16 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The PyUnicode_AsUTF8 method doesn't exist prior to Python 3.3.
> It is also somewhat inefficient, so rewrite it to use an
> intermediate PyBytes object.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> typewrappers.c | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131212/cc7bdffe/attachment-0001.sig>
More information about the libvir-list
mailing list