~ubuntu-branches/ubuntu/oneiric/python2.6/oneiric

« back to all changes in this revision

Viewing changes to Lib/bsddb/test/test_join.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        # create and populate primary index
52
52
        priDB = db.DB(self.env)
53
53
        priDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE)
54
 
        map(lambda t, priDB=priDB: apply(priDB.put, t), ProductIndex)
 
54
        map(lambda t, priDB=priDB: priDB.put(*t), ProductIndex)
55
55
 
56
56
        # create and populate secondary index
57
57
        secDB = db.DB(self.env)
58
58
        secDB.set_flags(db.DB_DUP | db.DB_DUPSORT)
59
59
        secDB.open(self.filename, "secondary", db.DB_BTREE, db.DB_CREATE)
60
 
        map(lambda t, secDB=secDB: apply(secDB.put, t), ColorIndex)
 
60
        map(lambda t, secDB=secDB: secDB.put(*t), ColorIndex)
61
61
 
62
62
        sCursor = None
63
63
        jCursor = None