[Spambayes-checkins] SF.net SVN: spambayes:[3189] trunk/spambayes/spambayes/Tester.py

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Tue Nov 25 02:54:19 CET 2008


Revision: 3189
          http://spambayes.svn.sourceforge.net/spambayes/?rev=3189&view=rev
Author:   montanaro
Date:     2008-11-25 01:54:19 +0000 (Tue, 25 Nov 2008)

Log Message:
-----------
pylint nits

Modified Paths:
--------------
    trunk/spambayes/spambayes/Tester.py

Modified: trunk/spambayes/spambayes/Tester.py
===================================================================
--- trunk/spambayes/spambayes/Tester.py	2008-11-25 01:53:58 UTC (rev 3188)
+++ trunk/spambayes/spambayes/Tester.py	2008-11-25 01:54:19 UTC (rev 3189)
@@ -42,10 +42,10 @@
         # The number of test instances correctly and incorrectly classified.
         self.nham_right = 0
         self.nham_wrong = 0
-        self.nham_unsure = 0;
+        self.nham_unsure = 0
         self.nspam_right = 0
         self.nspam_wrong = 0
-        self.nspam_unsure = 0;
+        self.nspam_unsure = 0
 
         # Lists of bad predictions.
         self.ham_wrong_examples = []    # False positives:  ham called spam.
@@ -194,9 +194,6 @@
 
 __test__ = {'easy': _easy_test}
 
-def _test():
-    import doctest, Tester
-    doctest.testmod(Tester)
-
 if __name__ == '__main__':
-    _test()
+    import doctest
+    doctest.testmod()


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the Spambayes-checkins mailing list