summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_join.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-02 08:37:35 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-02 08:37:35 (GMT)
commit5d62cfe070b63cdb3c80744ef9970facc008750c (patch)
tree3a7fea1b5ac99808c15312b2a6ae5dcbf5e3503f /Lib/bsddb/test/test_join.py
parent039c89938841347192b57a8609fb615dbc13d47b (diff)
downloadcpython-5d62cfe070b63cdb3c80744ef9970facc008750c.zip
cpython-5d62cfe070b63cdb3c80744ef9970facc008750c.tar.gz
cpython-5d62cfe070b63cdb3c80744ef9970facc008750c.tar.bz2
#7092: silence py3k warnings for bsddb. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/bsddb/test/test_join.py')
-rw-r--r--Lib/bsddb/test/test_join.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_join.py b/Lib/bsddb/test/test_join.py
index d070bf2..9b45df8 100644
--- a/Lib/bsddb/test/test_join.py
+++ b/Lib/bsddb/test/test_join.py
@@ -51,13 +51,13 @@ class JoinTestCase(unittest.TestCase):
# create and populate primary index
priDB = db.DB(self.env)
priDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE)
- map(lambda t, priDB=priDB: apply(priDB.put, t), ProductIndex)
+ map(lambda t, priDB=priDB: priDB.put(*t), ProductIndex)
# create and populate secondary index
secDB = db.DB(self.env)
secDB.set_flags(db.DB_DUP | db.DB_DUPSORT)
secDB.open(self.filename, "secondary", db.DB_BTREE, db.DB_CREATE)
- map(lambda t, secDB=secDB: apply(secDB.put, t), ColorIndex)
+ map(lambda t, secDB=secDB: secDB.put(*t), ColorIndex)
sCursor = None
jCursor = None