[Spambayes-checkins] spambayes OptionConfig.py,1.4,1.5

Richie Hindle richiehindle at users.sourceforge.net
Fri Jan 24 12:05:09 EST 2003


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

Modified Files:
	OptionConfig.py 
Log Message:
Added True/False code for 2.2.


Index: OptionConfig.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/OptionConfig.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** OptionConfig.py	17 Jan 2003 20:21:02 -0000	1.4
--- OptionConfig.py	24 Jan 2003 20:05:05 -0000	1.5
***************
*** 31,34 ****
--- 31,39 ----
  # Blame for bugs caused by using Dibbler: Richie Hindle <richie at entrian.com>
  
+ try:
+     True, False
+ except NameError:
+     # Maintain compatibility with Python 2.2
+     True, False = 1, 0
  
  from spambayes import Dibbler, PyMeldLite





More information about the Spambayes-checkins mailing list