https://trac.macports.org/ticket/55014
https://github.com/wbsoft/python-poppler-qt4/issues/17
--- types.sip
+++ types.sip
@@ -27,7 +27,7 @@
     foreach (Poppler::Document::RenderBackend value, set)
     {
         PyObject *obj = PyLong_FromLong ((long) value);
-        if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)
+        if (obj == NULL || PyList_SetItem(l, i, obj) < 0)
         {
             Py_DECREF(l);
 
