Skip to content

Commit 3ee8ce7

Browse files
committed
fix: support dumbdbm on windows.
Make db_exists in back_anydbm.py can detect a dumbdbm by looking for the .dat file.
1 parent eeff14d commit 3ee8ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/back_anydbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
def db_exists(config):
5555
# check for the user db
56-
for db in 'nodes.user nodes.user.db'.split():
56+
for db in 'nodes.user nodes.user.db nodes.user.dat'.split():
5757
if os.path.exists(os.path.join(config.DATABASE, db)):
5858
return 1
5959
return 0

0 commit comments

Comments
 (0)