pyldb: Use the Py_TYPE macro
commit92ff259f409cfeffc24ef9d7db8ab16217367bab
authorPetr Viktorin <pviktori@redhat.com>
Tue, 3 Mar 2015 21:29:07 +0000 (3 22:29 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Mar 2015 22:20:06 +0000 (3 23:20 +0100)
treee05cf61d8d27e99d4c144a40115e3113009b8394
parent39b08c7c1ee2173e47c8e9d381b89c4d74a5e0f5
pyldb: Use the Py_TYPE macro

The "ob_type" member of Python objects is going away
in Python 3 for compliance with C's strict aliasing rules.
The Py_TYPE macro should be used instead.

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c