/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-05-27 18:00:21 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 6992.
  • Revision ID: jelmer@jelmer.uk-20180527180021-kbdxgsh5bbbxha8o
Random bunch of python3 bee-improvements.

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]