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

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to