diff -rupN sip-4.19.9.dev1805261119/siplib/siplib.c.in sip-4.19.9.dev1805261119-new/siplib/siplib.c.in --- sip-4.19.9.dev1805261119/siplib/siplib.c.in 2018-05-29 03:30:19.000000000 +0200 +++ sip-4.19.9.dev1805261119-new/siplib/siplib.c.in 2018-06-01 21:28:29.296744492 +0200 @@ -6323,6 +6323,7 @@ static PyObject *createContainerType(sip if (py_type == NULL) goto relargs; +#if PY_VERSION_HEX >= 0x03030000 /* Fix __qualname__ if there is a scope. */ if (scope_td != NULL) { @@ -6337,6 +6338,7 @@ static PyObject *createContainerType(sip Py_CLEAR(ht->ht_qualname); ht->ht_qualname = qualname; } +#endif /* Add the type to the "parent" dictionary. */ if (PyDict_SetItem(scope_dict, name, py_type) < 0)