[Python-3000-checkins] r55794 - python/branches/p3yk/Objects/abstract.c
guido.van.rossum
python-3000-checkins at python.org
Thu Jun 7 00:29:26 CEST 2007
Author: guido.van.rossum
Date: Thu Jun 7 00:29:22 2007
New Revision: 55794
Modified:
python/branches/p3yk/Objects/abstract.c
Log:
Make this compile in GCC 2.96, which does not allow interspersing
declarations and code.
Modified: python/branches/p3yk/Objects/abstract.c
==============================================================================
--- python/branches/p3yk/Objects/abstract.c (original)
+++ python/branches/p3yk/Objects/abstract.c Thu Jun 7 00:29:22 2007
@@ -2133,8 +2133,9 @@
PyObject_IsInstance(PyObject *inst, PyObject *cls)
{
PyObject *t, *v, *tb;
+ PyObject *checker;
PyErr_Fetch(&t, &v, &tb);
- PyObject *checker = PyObject_GetAttrString(cls, "__instancecheck__");
+ checker = PyObject_GetAttrString(cls, "__instancecheck__");
PyErr_Restore(t, v, tb);
if (checker != NULL) {
PyObject *res;
@@ -2203,8 +2204,9 @@
PyObject_IsSubclass(PyObject *derived, PyObject *cls)
{
PyObject *t, *v, *tb;
+ PyObject *checker;
PyErr_Fetch(&t, &v, &tb);
- PyObject *checker = PyObject_GetAttrString(cls, "__subclasscheck__");
+ checker = PyObject_GetAttrString(cls, "__subclasscheck__");
PyErr_Restore(t, v, tb);
if (checker != NULL) {
PyObject *res;
More information about the Python-3000-checkins
mailing list