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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user