mirror of https://github.com/python/cpython
Removing TODO comment for None keys, as suggested by Neal Norwitz.
This commit is contained in:
parent
8974f72b81
commit
f073b7584f
|
@ -348,7 +348,7 @@ make_key_dbt(DBObject* self, PyObject* keyobj, DBT* key, int* pflags)
|
|||
int type;
|
||||
|
||||
CLEAR_DBT(*key);
|
||||
if (keyobj == Py_None) { /* TODO: is None really okay for keys? */
|
||||
if (keyobj == Py_None) {
|
||||
type = _DB_get_type(self);
|
||||
if (type == -1)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue