Revision: 3243
          http://spambayes.svn.sourceforge.net/spambayes/?rev=3243&view=rev
Author:   mhammond
Date:     2009-02-21 06:19:36 +0000 (Sat, 21 Feb 2009)

Log Message:
-----------
make an assertion do what it *looks* like it does

Modified Paths:
--------------
    trunk/spambayes/Outlook2000/addin.py

Modified: trunk/spambayes/Outlook2000/addin.py
===================================================================
--- trunk/spambayes/Outlook2000/addin.py        2009-02-20 06:57:02 UTC (rev 
3242)
+++ trunk/spambayes/Outlook2000/addin.py        2009-02-21 06:19:36 UTC (rev 
3243)
@@ -405,8 +405,8 @@
         # then it should be trained as such.
         self.manager.LogDebug(2, "OnItemAdd event for SPAM folder", self,
                               "with item", item.Subject.encode("mbcs", 
"ignore"))
-        assert(not self.manager.config.training.train_manual_spam,
-               "The folder shouldn't be hooked if this is False")
+        assert not self.manager.config.training.train_manual_spam, \
+               "The folder shouldn't be hooked if this is False"
         # XXX - Theoretically we could get "not found" exception here,
         # but we have never guarded for it, and never seen it.  If it does
         # happen life will go on, so for now we continue to ignore it.


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

Reply via email to