Revision: 3200
http://spambayes.svn.sourceforge.net/spambayes/?rev=3200&view=rev
Author: montanaro
Date: 2008-11-25 02:06:37 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
pylint nits
Modified Paths:
--------------
trunk/spambayes/spambayes/OptionsClass.py
Modified: trunk/spambayes/spambayes/OptionsClass.py
===================================================================
--- trunk/spambayes/spambayes/OptionsClass.py 2008-11-25 02:06:00 UTC (rev
3199)
+++ trunk/spambayes/spambayes/OptionsClass.py 2008-11-25 02:06:37 UTC (rev
3200)
@@ -683,11 +683,6 @@
# For the moment, this will do. Use a real mail client, for
# goodness sake!
if sect == "Headers" and opt in ("notate_to", "notate_subject"):
- header_strings = (self.get("Headers", "header_ham_string"),
- self.get("Headers",
- "header_spam_string"),
- self.get("Headers",
- "header_unsure_string"))
self._options[sect, opt.lower()].set(val)
return
if self.is_valid(sect, opt, val):
@@ -860,9 +855,10 @@
# where number represents the number of CHAR8 octets
# but this is too complex for us at the moment.
IMAP_ASTRING = []
-for i in range(1, 128):
- if not chr(i) in ['"', '\\', '\n', '\r']:
+for _i in xrange(1, 128):
+ if chr(i) not in ['"', '\\', '\n', '\r']:
IMAP_ASTRING.append(chr(i))
+del _i
IMAP_ASTRING = r"\"?[" + re.escape(''.join(IMAP_ASTRING)) + r"]+\"?"
# Similarly, each option must specify whether it should be reset to
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