[Spambayes-checkins] spambayes/spambayes tokenizer.py,1.23,1.24

Tony Meyer anadelonbrin at users.sourceforge.net
Fri Dec 19 00:37:49 EST 2003


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

Modified Files:
	tokenizer.py 
Log Message:
Fix a bug where the URLRetriever experimental option wouldn't work with the
proxy setting set.

Index: tokenizer.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/tokenizer.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** tokenizer.py	17 Dec 2003 09:09:52 -0000	1.23
--- tokenizer.py	19 Dec 2003 05:37:47 -0000	1.24
***************
*** 1024,1027 ****
--- 1024,1031 ----
          password = options["globals", "proxy_password"]
          server = options["globals", "proxy_server"]
+         if server.find(":") != -1:
+             server, port = server.split(':', 1)
+         else:
+             port = 8080
          if server:
              # Build a new opener that uses a proxy requiring authorization





More information about the Spambayes-checkins mailing list