[Python-checkins] r60031 - python/trunk/Modules/_struct.c
raymond.hettinger
python-checkins at python.org
Fri Jan 18 01:10:42 CET 2008
Author: raymond.hettinger
Date: Fri Jan 18 01:10:42 2008
New Revision: 60031
Modified:
python/trunk/Modules/_struct.c
Log:
clearcache() needs to remove the dict as well as clear it.
Modified: python/trunk/Modules/_struct.c
==============================================================================
--- python/trunk/Modules/_struct.c (original)
+++ python/trunk/Modules/_struct.c Fri Jan 18 01:10:42 2008
@@ -1887,8 +1887,7 @@
static PyObject *
clearcache(PyObject *self)
{
- if (cache != NULL)
- PyDict_Clear(cache);
+ Py_CLEAR(cache);
Py_RETURN_NONE;
}
More information about the Python-checkins
mailing list