/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/git/cache.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-29 20:24:31 UTC
  • mfrom: (6999 work)
  • mto: This revision was merged to the branch mainline in revision 7008.
  • Revision ID: jelmer@jelmer.uk-20180629202431-2td8kihrsthzuvau
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
        if path is None:
415
415
            self.db = sqlite3.connect(":memory:")
416
416
        else:
417
 
            if not mapdbs().has_key(path):
 
417
            if path not in mapdbs():
418
418
                mapdbs()[path] = sqlite3.connect(path)
419
419
            self.db = mapdbs()[path]
420
420
        self.db.text_factory = str
616
616
        else:
617
617
            if type(path) is not str:
618
618
                raise TypeError(path)
619
 
            if not mapdbs().has_key(path):
 
619
            if path not in mapdbs():
620
620
                mapdbs()[path] = tdb.Tdb(path, self.TDB_HASH_SIZE, tdb.DEFAULT,
621
621
                                          os.O_RDWR|os.O_CREAT)
622
622
            self.db = mapdbs()[path]