Always return a two-tuple in client.gets
This commit is contained in:
parent
432cd63ccd
commit
a3605ca55f
@ -460,7 +460,7 @@ static PyObject *PylibMC_Client_gets(PylibMC_Client *self, PyObject *arg) {
|
|||||||
return ret;
|
return ret;
|
||||||
} else if (rc == MEMCACHED_END) {
|
} else if (rc == MEMCACHED_END) {
|
||||||
/* Key not found => (None, None) */
|
/* Key not found => (None, None) */
|
||||||
Py_RETURN_NONE;
|
return Py_BuildValue("(OO)", Py_None, Py_None);
|
||||||
} else {
|
} else {
|
||||||
return PylibMC_ErrFromMemcached(self, "memcached_gets", rc);
|
return PylibMC_ErrFromMemcached(self, "memcached_gets", rc);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user