diff options
author | Jason Tishler <jason@tishler.net> | 2003-01-06 12:41:26 (GMT) |
---|---|---|
committer | Jason Tishler <jason@tishler.net> | 2003-01-06 12:41:26 (GMT) |
commit | fb8595df4f9583ab9e83826cd782e0c18ba9cffa (patch) | |
tree | fb178c5308b141f5285fd5b0bb560da02ee8c64c /Modules/cPickle.c | |
parent | f2128b004c5cac7ae8766329b061867de6fb6093 (diff) | |
download | cpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.zip cpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.tar.gz cpython-fb8595df4f9583ab9e83826cd782e0c18ba9cffa.tar.bz2 |
Patch #661760: Cygwin auto-import module patch
The attached patch enables shared extension
modules to build cleanly under Cygwin without
moving the static initialization of certain function
pointers (i.e., ones exported from the Python
DLL core) to a module initialization function.
Additionally, this patch fixes the modules that
have been changed in the past to accommodate
Cygwin.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 9412ad9..24a9f13 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -2543,8 +2543,8 @@ static PyTypeObject Picklertype = { 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ - 0, /* set below */ /* tp_getattro */ - 0, /* set below */ /* tp_setattro */ + PyObject_GenericGetAttr, /* tp_getattro */ + PyObject_GenericSetAttr, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */ Picklertype__doc__, /* tp_doc */ @@ -4808,8 +4808,6 @@ initcPickle(void) PyObject *compatible_formats; Picklertype.ob_type = &PyType_Type; - Picklertype.tp_getattro = PyObject_GenericGetAttr; - Picklertype.tp_setattro = PyObject_GenericSetAttr; Unpicklertype.ob_type = &PyType_Type; PdataType.ob_type = &PyType_Type; |