Skip to content

Commit

Permalink
The name used for capsule creation must be equal to import.
Browse files Browse the repository at this point in the history
PyCapsule_IsValid checks if the name used at PyCapsule_New is equal to
the name used in PyCapsule_Import.
  • Loading branch information
stephan-hof committed May 9, 2017
1 parent c2ee52e commit 258ad29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Acquisition/_Acquisition.c
Expand Up @@ -2050,7 +2050,7 @@ module_init(void)
AcquisitionCAPI.AQ_Inner = capi_aq_inner;
AcquisitionCAPI.AQ_Chain = capi_aq_chain;

api = PyCapsule_New(&AcquisitionCAPI, "AcquisitionCAPI", NULL);
api = PyCapsule_New(&AcquisitionCAPI, "Acquisition.AcquisitionCAPI", NULL);

PyDict_SetItemString(d, "AcquisitionCAPI", api);
Py_DECREF(api);
Expand Down

0 comments on commit 258ad29

Please sign in to comment.