1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-12-08 08:23:47 +03:00

Drop support for python 2

python2 will be end of life by the time of the next
libvirt release. All our supported build targets, including
CentOS7, have a python3 build available.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2019-12-04 10:27:36 +00:00
parent e3fa4f22d5
commit b22e4f2441
26 changed files with 71 additions and 381 deletions

View File

@@ -139,11 +139,7 @@ int virReallocN(void *ptrptr, size_t size, size_t count)
void virFree(void *ptrptr) ATTRIBUTE_NONNULL(1);
# if PY_MAJOR_VERSION > 2
# define libvirt_PyString_Check PyUnicode_Check
# else
# define libvirt_PyString_Check PyString_Check
# endif
# define libvirt_PyString_Check PyUnicode_Check
#define VIR_N_ELEMENTS(array) (sizeof(array) / sizeof(*(array)))