Skip to content

Commit

Permalink
fix: revert setting _db_type when creating new db.
Browse files Browse the repository at this point in the history
Also revert setting _db_type to None when calling clear().

Lots of breakage from this change. Not sure why.
  • Loading branch information
rouilj committed Apr 19, 2024
1 parent f0408f0 commit 0573b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roundup/backends/sessions_dbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def clear(self):
os.remove(path+".dir")
os.remove(path+".dat")

self._db_type = None
#self._db_type = None

def cache_db_type(self, path):
''' determine which DB wrote the class file, and cache it as an
Expand Down Expand Up @@ -148,7 +148,7 @@ def opendb(self, mode):
# new database? let anydbm pick the best dbm
if not db_type:
db = anydbm.open(path, 'c')
self.cache_db_type(path)
#self.cache_db_type(path)
return db

# open the database with the correct module
Expand Down

0 comments on commit 0573b15

Please sign in to comment.