chiark / gitweb /
Fix the missing-module-names bug properly.
[catacomb-python] / ec.c
diff --git a/ec.c b/ec.c
index a294f093c2f9de40851637416b53984f84bc3bed..d27036eed9c478136bf0fd35d0a9b82490edf07b 100644 (file)
--- a/ec.c
+++ b/ec.c
@@ -916,7 +916,7 @@ static PyObject *eccurve_dopywrap(PyTypeObject *ty,
   cobj->ty.ht_type.tp_alloc = PyType_GenericAlloc;
   cobj->ty.ht_type.tp_free = 0;
   cobj->ty.ht_type.tp_new = ecpt_pynew;
   cobj->ty.ht_type.tp_alloc = PyType_GenericAlloc;
   cobj->ty.ht_type.tp_free = 0;
   cobj->ty.ht_type.tp_new = ecpt_pynew;
-  PyType_Ready(&cobj->ty.ht_type);
+  typeready(&cobj->ty.ht_type);
   return ((PyObject *)cobj);
 }
 
   return ((PyObject *)cobj);
 }