mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
This commit is contained in:
parent
31584cb43d
commit
a120ffcf12
4 changed files with 15 additions and 5 deletions
|
@ -338,7 +338,7 @@ regobj_getattr(regexobject *re, char *name)
|
|||
}
|
||||
|
||||
static PyTypeObject Regextype = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"regex", /*tp_name*/
|
||||
sizeof(regexobject), /*tp_size*/
|
||||
|
@ -654,6 +654,9 @@ initregex(void)
|
|||
int i;
|
||||
char *s;
|
||||
|
||||
/* Initialize object type */
|
||||
Regextype.ob_type = &PyType_Type;
|
||||
|
||||
m = Py_InitModule("regex", regex_global_methods);
|
||||
d = PyModule_GetDict(m);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue