Commit dbf0ce35 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

Merge branch 'python39-tp-print' into 'master'

Do not set tp_print for Python 3.9

See merge request !24
parents 845aa210 99a8a163
Pipeline #180905 failed with stages
in 6 minutes and 39 seconds
......@@ -116,7 +116,11 @@ PyMODINIT_FUNC PyInit___segments(void)
Py_INCREF(&segments_Segment_Type);
PyModule_AddObject(module, "segment", (PyObject *) &segments_Segment_Type);
/* uninherit tp_print from tuple class */
#if PY_VERSION_HEX < 0x03090000
/* FIXME: tp_print was removed in Python 3.9.
* Remove this once Python 3.8 reaches end of life. */
segments_Segment_Type.tp_print = NULL;
#endif
/*
* Create segmentlist class
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment