[Spambayes-checkins] spambayes/spambayes storage.py,1.21,1.22

Skip Montanaro montanaro at users.sourceforge.net
Mon Aug 25 09:31:41 EDT 2003


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

Modified Files:
	storage.py 
Log Message:
use """ for doc string to make emacs happier
locate the "::" using find() for 2.2 compatibility


Index: storage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/storage.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** storage.py	25 Aug 2003 09:10:00 -0000	1.21
--- storage.py	25 Aug 2003 15:31:39 -0000	1.22
***************
*** 585,589 ****
  
  def open_storage(data_source_name, useDB=True):
!     '''Return a storage object appropriate to the given parameters.
  
      By centralizing this code here, all the applications will behave
--- 585,589 ----
  
  def open_storage(data_source_name, useDB=True):
!     """Return a storage object appropriate to the given parameters.
  
      By centralizing this code here, all the applications will behave
***************
*** 593,599 ****
      source name includes "::", whatever is before that determines
      the type of database.  If the source name doesn't include "::",
!     then a DBDictClassifier is used.'''
      if useDB:
!         if '::' in data_source_name:
              db_type, rest = data_source_name.split('::', 1)
              if _storage_types.has_key(db_type.lower()):
--- 593,599 ----
      source name includes "::", whatever is before that determines
      the type of database.  If the source name doesn't include "::",
!     then a DBDictClassifier is used."""
      if useDB:
!         if data_source_name.find('::') != -1:
              db_type, rest = data_source_name.split('::', 1)
              if _storage_types.has_key(db_type.lower()):





More information about the Spambayes-checkins mailing list