Mercurial > p > roundup > code
changeset 7889:a5d39e5a5cdc
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 18 Apr 2024 22:28:58 -0400 |
| parents | 456edf872259 |
| children | 9347c4a0ecd6 |
| files | roundup/backends/sessions_dbm.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py Thu Apr 18 22:15:26 2024 -0400 +++ b/roundup/backends/sessions_dbm.py Thu Apr 18 22:28:58 2024 -0400 @@ -46,7 +46,7 @@ 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 @@ # 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
