]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
cast to getter
authorBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2011 11:55:34 +0000 (07:55 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2011 11:55:34 +0000 (07:55 -0400)
Modules/_io/iobase.c

index 2c59d42421e4aed0507eb93ec22ef40091e0538c..35c7cdd480dccf0d5e71851e44a0ad2b66ce5449 100644 (file)
@@ -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}
 };