mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -72,13 +72,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue