spambayes/spambayes TestDriver.py,1.5,1.6

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16346/spambayes

Modified Files:
	TestDriver.py 
Log Message:
Use Python 2.4 sets if available.

Index: TestDriver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/TestDriver.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestDriver.py	18 Oct 2004 01:01:38 -0000	1.5
--- TestDriver.py	16 Mar 2005 03:27:21 -0000	1.6
***************
*** 23,29 ****
  
  try:
!     from sets import Set
! except ImportError:
!     from spambayes.compatsets import Set
  
  import cPickle as pickle
--- 23,36 ----
  
  try:
!     # We have three possibilities for Set:
!     #  (a) With Python 2.2 and earlier, we use our compatsets class
!     #  (b) With Python 2.3, we use the sets.Set class
!     #  (c) With Python 2.4 and later, we use the builtin set class
!     Set = set
! except NameError:
!     try:
!         from sets import Set
!     except ImportError:
!         from spambayes.compatsets import Set
  
  import cPickle as pickle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.