[Spambayes-checkins] spambayes/scripts sb_evoscore.py,1.1,1.2

Barry A. Warsaw bwarsaw at users.sourceforge.net
Tue Nov 25 16:02:50 EST 2003


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

Modified Files:
	sb_evoscore.py 
Log Message:
main(): Wrap the message in a binary, just in case there are unencoded binary
characters in the message.


Index: sb_evoscore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_evoscore.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sb_evoscore.py	25 Nov 2003 03:52:23 -0000	1.1
--- sb_evoscore.py	25 Nov 2003 21:02:46 -0000	1.2
***************
*** 92,96 ****
      try:
          server = xmlrpclib.ServerProxy(RPCURL)
!         score = server.score(msg)
      except:
          import traceback
--- 92,96 ----
      try:
          server = xmlrpclib.ServerProxy(RPCURL)
!         score = server.score(xmlrpclib.Binary(msg))
      except:
          import traceback





More information about the Spambayes-checkins mailing list