Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13923
Modified Files:
dbmstorage.py
Log Message:
SF patch #810344. Should have applied this long ago.
Index: dbmstorage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/dbmstorage.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** dbmstorage.py 7 Apr 2006 02:23:05 -0000 1.15
--- dbmstorage.py 3 Jul 2007 14:12:49 -0000 1.16
***************
*** 34,37 ****
--- 34,42 ----
return gdbm.open(*args)
+ def open_dbm(*args):
+ """Open a dbm database."""
+ import dbm
+ return dbm.open(*args)
+
def open_best(*args):
if sys.platform == "win32":
***************
*** 42,46 ****
funcs.insert(0, open_dbhash)
else:
! funcs = [open_db3hash, open_dbhash, open_gdbm, open_db185hash]
for f in funcs:
try:
--- 47,52 ----
funcs.insert(0, open_dbhash)
else:
! funcs = [open_db3hash, open_dbhash, open_gdbm, open_db185hash,
! open_dbm]
for f in funcs:
try:
***************
*** 56,59 ****
--- 62,66 ----
"bsddb185": open_db185hash,
"gdbm": open_gdbm,
+ "dbm": open_dbm,
}
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins