From f22913b8c39f1053c291c96cf3016cabad60bbd4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 6 Sep 2011 07:55:34 -0400 Subject: [PATCH] cast to getter --- Modules/_io/iobase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c index 2c59d42421e..35c7cdd480d 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} };