diff options
Diffstat (limited to 'dbus_bindings/containers.c')
-rw-r--r-- | dbus_bindings/containers.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dbus_bindings/containers.c b/dbus_bindings/containers.c index 26f983b..7994d1f 100644 --- a/dbus_bindings/containers.c +++ b/dbus_bindings/containers.c @@ -2,6 +2,8 @@ * * Copyright (C) 2006-2007 Collabora Ltd. <http://www.collabora.co.uk/> * + * SPDX-License-Identifier: MIT + * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without @@ -775,15 +777,21 @@ dbus_py_init_container_types(void) DBusPyArray_Type.tp_base = &PyList_Type; if (PyType_Ready(&DBusPyArray_Type) < 0) return 0; +#ifndef PY3 DBusPyArray_Type.tp_print = NULL; +#endif DBusPyDict_Type.tp_base = &PyDict_Type; if (PyType_Ready(&DBusPyDict_Type) < 0) return 0; +#ifndef PY3 DBusPyDict_Type.tp_print = NULL; +#endif DBusPyStruct_Type.tp_base = &PyTuple_Type; if (PyType_Ready(&DBusPyStruct_Type) < 0) return 0; +#ifndef PY3 DBusPyStruct_Type.tp_print = NULL; +#endif return 1; } |