[Python-checkins] cpython (3.2): cast to getter

benjamin.peterson python-checkins at python.org
Tue Sep 6 13:57:48 CEST 2011


http://hg.python.org/cpython/rev/4cf619af7dc8
changeset:   72302:4cf619af7dc8
branch:      3.2
parent:      72266:792606c351cf
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Sep 06 07:55:34 2011 -0400
summary:
  cast to getter

files:
  Modules/_io/iobase.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -704,7 +704,7 @@
 };
 
 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}
 };

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list