From 0573b159efe7147b3a44ed5157a7a5e7bb47b39b Mon Sep 17 00:00:00 2001 From: John Rouillard Date: Thu, 18 Apr 2024 22:28:58 -0400 Subject: [PATCH] fix: revert setting _db_type when creating new db. Also revert setting _db_type to None when calling clear(). Lots of breakage from this change. Not sure why. --- roundup/backends/sessions_dbm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roundup/backends/sessions_dbm.py b/roundup/backends/sessions_dbm.py index f52a937e..02828ed2 100644 --- a/roundup/backends/sessions_dbm.py +++ b/roundup/backends/sessions_dbm.py @@ -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 @@ -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