summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-06 11:55:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-06 11:55:34 (GMT)
commitf22913b8c39f1053c291c96cf3016cabad60bbd4 (patch)
tree02f9599fdf8f2c44c62faee64a5df936b45e2ad3 /Modules/_io
parent06ee0209614ea0d1a0801b673f1c5ee83b9ded5a (diff)
downloadcpython-f22913b8c39f1053c291c96cf3016cabad60bbd4.zip
cpython-f22913b8c39f1053c291c96cf3016cabad60bbd4.tar.gz
cpython-f22913b8c39f1053c291c96cf3016cabad60bbd4.tar.bz2
cast to getter
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/iobase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
index 2c59d42..35c7cdd 100644
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -704,7 +704,7 @@ static PyMethodDef iobase_methods[] = {
};
static PyGetSetDef iobase_getset[] = {
- {"__dict__", iobase_get_dict, NULL, NULL},
+ {"__dict__", (getter)iobase_get_dict, NULL, NULL},
{"closed", (getter)iobase_closed_get, NULL, NULL},
{NULL}
};