commit | 6d21456137836b8acd551cf6a51999ad4ff10a91 | [log] [tgz] |
---|---|---|
author | Gerhard Häring <gh@ghaering.de> | Fri Aug 10 18:15:11 2007 +0000 |
committer | Gerhard Häring <gh@ghaering.de> | Fri Aug 10 18:15:11 2007 +0000 |
tree | a9cdbf533531b1326623f704e6155350dddb0b17 | |
parent | bd4a63e091ddb38a2d55d9c21eee8656863240ca [diff] [blame] |
Make the sqlite tests pass.
diff --git a/Modules/_sqlite/row.c b/Modules/_sqlite/row.c index 6bd1887..b2f105a 100644 --- a/Modules/_sqlite/row.c +++ b/Modules/_sqlite/row.c
@@ -86,8 +86,8 @@ item = PyTuple_GetItem(self->data, _idx); Py_XINCREF(item); return item; - } else if (PyString_Check(idx)) { - key = PyString_AsString(idx); + } else if (PyUnicode_Check(idx)) { + key = PyUnicode_AsString(idx); nitems = PyTuple_Size(self->description);