Skip to content

Commit 0573b15

Browse files
committed
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.
1 parent f0408f0 commit 0573b15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/backends/sessions_dbm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def clear(self):
4646
os.remove(path+".dir")
4747
os.remove(path+".dat")
4848

49-
self._db_type = None
49+
#self._db_type = None
5050

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

154154
# open the database with the correct module

0 commit comments

Comments
 (0)