Skip to content

Commit f0408f0

Browse files
committed
fix: set _db_type to None when clearing anydbm db.
1 parent 7ab4a8f commit f0408f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roundup/backends/sessions_dbm.py

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

49+
self._db_type = None
50+
4951
def cache_db_type(self, path):
5052
''' determine which DB wrote the class file, and cache it as an
5153
attribute of __class__ (to allow for subclassed DBs to be

0 commit comments

Comments
 (0)