[Python-checkins] r42574 - python/trunk/Objects/dictobject.c
guido.van.rossum
python-checkins at python.org
Sun Feb 26 00:32:30 CET 2006
Author: guido.van.rossum
Date: Sun Feb 26 00:32:30 2006
New Revision: 42574
Modified:
python/trunk/Objects/dictobject.c
Log:
Oops. Fix syntax for C89 compilers.
Modified: python/trunk/Objects/dictobject.c
==============================================================================
--- python/trunk/Objects/dictobject.c (original)
+++ python/trunk/Objects/dictobject.c Sun Feb 26 00:32:30 2006
@@ -885,12 +885,12 @@
if (v == NULL) {
if (!PyDict_CheckExact(mp)) {
/* Look up __missing__ method if we're a subclass. */
+ PyObject *missing;
static PyObject *missing_str = NULL;
if (missing_str == NULL)
missing_str =
PyString_InternFromString("__missing__");
- PyObject *missing = _PyType_Lookup(mp->ob_type,
- missing_str);
+ missing = _PyType_Lookup(mp->ob_type, missing_str);
if (missing != NULL)
return PyObject_CallFunctionObjArgs(missing,
(PyObject *)mp, key, NULL);
More information about the Python-checkins
mailing list