Always return a two-tuple in client.gets

This commit is contained in:
lericson 2010-10-08 21:25:25 +02:00
parent 432cd63ccd
commit a3605ca55f

View File

@ -460,7 +460,7 @@ static PyObject *PylibMC_Client_gets(PylibMC_Client *self, PyObject *arg) {
return ret;
} else if (rc == MEMCACHED_END) {
/* Key not found => (None, None) */
Py_RETURN_NONE;
return Py_BuildValue("(OO)", Py_None, Py_None);
} else {
return PylibMC_ErrFromMemcached(self, "memcached_gets", rc);
}