[Spambayes-checkins] spambayes/spambayes dbmstorage.py,1.5,1.6

Skip Montanaro montanaro at users.sourceforge.net
Wed Aug 6 18:01:10 EDT 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv18514

Modified Files:
	dbmstorage.py 
Log Message:
remove dumbdbm from the possible dbm storage options


Index: dbmstorage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/dbmstorage.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** dbmstorage.py	14 Jul 2003 12:08:17 -0000	1.5
--- dbmstorage.py	7 Aug 2003 00:01:07 -0000	1.6
***************
*** 23,34 ****
      return gdbm.open(*args)
  
- def open_dumbdbm(*args):
-     """Open a dumbdbm database."""
-     import dumbdbm
-     db = dumbdbm.open(*args)
-     if not hasattr(db, "sync"):
-         db.sync = db._commit
-     return db
- 
  def open_best(*args):
      if sys.platform == "win32":
--- 23,26 ----
***************
*** 39,43 ****
              funcs.insert(0, open_dbhash)
      else:
!         funcs = [open_db3hash, open_dbhash, open_gdbm, open_dumbdbm]
      for f in funcs:
          try:
--- 31,35 ----
              funcs.insert(0, open_dbhash)
      else:
!         funcs = [open_db3hash, open_dbhash, open_gdbm]
      for f in funcs:
          try:
***************
*** 52,56 ****
      "dbhash": open_dbhash,
      "gdbm": open_gdbm,
-     "dumbdbm": open_dumbdbm,
      }
  
--- 44,47 ----





More information about the Spambayes-checkins mailing list