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;
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to