Revision: 3181
http://spambayes.svn.sourceforge.net/spambayes/?rev=3181&view=rev
Author: montanaro
Date: 2008-11-25 01:46:17 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
stop using string module.
Modified Paths:
--------------
trunk/spambayes/spambayes/smtpproxy.py
Modified: trunk/spambayes/spambayes/smtpproxy.py
===================================================================
--- trunk/spambayes/spambayes/smtpproxy.py 2008-11-25 01:34:26 UTC (rev
3180)
+++ trunk/spambayes/spambayes/smtpproxy.py 2008-11-25 01:46:17 UTC (rev
3181)
@@ -119,7 +119,6 @@
is set, and if view all headers is true.
"""
-import string
import re
import socket
import sys
@@ -317,8 +316,8 @@
getting FROM: addresses.
"""
if '<' in address:
- start = string.index(address, '<') + 1
- end = string.index(address, '>')
+ start = address.index('<') + 1
+ end = address.index('>')
return address[start:end]
else:
return address
@@ -368,7 +367,7 @@
rv = "%s:%s" % (command, ' '.join(args))
return rv
- def onUnknown(self, command, args):
+ def onUnknown(self, _command, _args):
"""Default handler."""
return self.request
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins