Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84261d2

Browse files
committed
Fix a typo/cut-n-paste error in DBCursor.join_item so that it doesn't
return a tuple. (this also implies that nobody uses this method; the bug has been here for a long time)
1 parent 8851c62 commit 84261d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_bsddb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3033,7 +3033,7 @@ DBC_join_item(DBCursorObject* self, PyObject* args)
30333033
retval = NULL;
30343034
}
30353035
else {
3036-
retval = Py_BuildValue("s#s#", key.data, key.size);
3036+
retval = Py_BuildValue("s#", key.data, key.size);
30373037
FREE_DBT(key);
30383038
}
30393039

0 commit comments

Comments
 (0)