Commit ae7a6c18 authored by matt@zope.com's avatar matt@zope.com

Correction from Steve Alexander where return(Py_None) does not incref

Py_None.
parent 6e89b1e0
......@@ -15,7 +15,7 @@
Set operations
****************************************************************************/
#define SETOPTEMPLATE_C "$Id: SetOpTemplate.c,v 1.8 2001/11/28 15:50:54 matt Exp $\n"
#define SETOPTEMPLATE_C "$Id: SetOpTemplate.c,v 1.9 2002/01/24 20:18:29 matt Exp $\n"
#ifdef INTSET_H
static int
......@@ -307,7 +307,7 @@ difference_m(PyObject *ignored, PyObject *args)
if (o1==Py_None || o2==Py_None)
{
Py_INCREF(o1);
Py_INCREF(Py_None);
return Py_None;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment