Kaydet (Commit) e266d3e8 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

ready _sre types

üst 021f334b
......@@ -3876,8 +3876,9 @@ PyMODINIT_FUNC init_sre(void)
PyObject* x;
/* Patch object types */
Pattern_Type.ob_type = Match_Type.ob_type =
Scanner_Type.ob_type = &PyType_Type;
if (PyType_Ready(&Pattern_Type) || PyType_Ready(&Match_Type) ||
PyType_Ready(&Scanner_Type))
return;
m = Py_InitModule("_" SRE_MODULE, _functions);
if (m == NULL)
......
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