]> granicus.if.org Git - python/commitdiff
Fix a typo/cut-n-paste error in DBCursor.join_item so that it doesn't
authorGregory P. Smith <greg@mad-scientist.com>
Mon, 7 Jul 2003 19:06:45 +0000 (19:06 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Mon, 7 Jul 2003 19:06:45 +0000 (19:06 +0000)
return a tuple.  (this also implies that nobody uses this method; the
bug has been here for a long time)

Modules/_bsddb.c

index 7a4f9e1762799ee6c17579ac3538704caf4c7535..b74491ce3230f461af2b059dde80ab83031860c1 100644 (file)
@@ -3033,7 +3033,7 @@ DBC_join_item(DBCursorObject* self, PyObject* args)
         retval = NULL;
     }
     else {
-        retval = Py_BuildValue("s#s#", key.data, key.size);
+        retval = Py_BuildValue("s#", key.data, key.size);
         FREE_DBT(key);
     }