summaryrefslogtreecommitdiffstats
path: root/Modules/_hotshot.c
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2002-08-08 19:46:15 (GMT)
committerJason Tishler <jason@tishler.net>2002-08-08 19:46:15 (GMT)
commit4df78cddaa66cb891b6be15d0976e9689a75785e (patch)
tree620dce416e1381672e9b89e530a7527e0a4de15d /Modules/_hotshot.c
parent715f970969e7acb4ba66b6369ce8bd9d88fc6ef1 (diff)
downloadcpython-4df78cddaa66cb891b6be15d0976e9689a75785e.zip
cpython-4df78cddaa66cb891b6be15d0976e9689a75785e.tar.gz
cpython-4df78cddaa66cb891b6be15d0976e9689a75785e.tar.bz2
Patch #588561: Cygwin _hotshot patch
YA Cygwin module patch very similar to other patches that I have submitted. I tested under Cygwin and Red Hat Linux 7.1.
Diffstat (limited to 'Modules/_hotshot.c')
-rw-r--r--Modules/_hotshot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index 625d1ba..1e8f4f9 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -1248,7 +1248,7 @@ static PyTypeObject ProfilerType = {
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
@@ -1333,7 +1333,7 @@ static PyTypeObject LogReaderType = {
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
@@ -1624,7 +1624,9 @@ init_hotshot(void)
PyObject *module;
LogReaderType.ob_type = &PyType_Type;
+ LogReaderType.tp_getattro = PyObject_GenericGetAttr;
ProfilerType.ob_type = &PyType_Type;
+ ProfilerType.tp_getattro = PyObject_GenericGetAttr;
module = Py_InitModule("_hotshot", functions);
if (module != NULL) {
char *s = get_version_string();