From 98cbe2b3ace53ef70738345548402cb4e74a4db7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 14 Sep 2021 16:48:18 +0100 Subject: Remove support for Python 2 Python 2 reached EOL on 2020-01-01, and the latest version of AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a time as any to drop compatibility. Signed-off-by: Simon McVittie --- dbus_bindings/float.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'dbus_bindings/float.c') diff --git a/dbus_bindings/float.c b/dbus_bindings/float.c index eeabd5b..3ec1c13 100644 --- a/dbus_bindings/float.c +++ b/dbus_bindings/float.c @@ -130,16 +130,10 @@ dbus_py_init_float_types(void) { DBusPyDouble_Type.tp_base = &DBusPyFloatBase_Type; if (PyType_Ready(&DBusPyDouble_Type) < 0) return 0; -#ifndef PY3 - DBusPyDouble_Type.tp_print = NULL; -#endif #ifdef WITH_DBUS_FLOAT32 DBusPyFloat_Type.tp_base = &DBusPyFloatBase_Type; if (PyType_Ready(&DBusPyFloat_Type) < 0) return 0; -#ifndef PY3 - DBusPyFloat_Type.tp_print = NULL; -#endif #endif return 1; -- cgit v1.2.3