Revision: 3197
http://spambayes.svn.sourceforge.net/spambayes/?rev=3197&view=rev
Author: montanaro
Date: 2008-11-25 02:03:24 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
pylint nits
Modified Paths:
--------------
trunk/spambayes/spambayes/oe_mailbox.py
Modified: trunk/spambayes/spambayes/oe_mailbox.py
===================================================================
--- trunk/spambayes/spambayes/oe_mailbox.py 2008-11-25 02:02:34 UTC (rev
3196)
+++ trunk/spambayes/spambayes/oe_mailbox.py 2008-11-25 02:03:24 UTC (rev
3197)
@@ -26,19 +26,20 @@
# Based on C++ work by Arne Schloh <[EMAIL PROTECTED]>
+import sys
import binascii
import os
import re
import struct
-import mailbox
-import msgs
+import random
+from time import *
try:
import cStringIO as StringIO
except ImportError:
import StringIO
-import sys
-from time import *
+from spambayes import msgs
+
try:
import win32api
import win32con
@@ -49,8 +50,7 @@
# Some functions will not work, but some will.
win32api = win32con = win32gui = shell = shellcon = None
-import oe_mailbox
-import mboxutils
+from spambayes import oe_mailbox
###########################################################################
## DBX FILE HEADER
@@ -340,7 +340,8 @@
index = self.dbxBegin[dbxIndex]
end = index
for c in self.dbxBuffer[index:]:
- if ord(c) == 0: break
+ if ord(c) == 0:
+ break
end += 1
return self.dbxBuffer[index:end]
@@ -693,19 +694,18 @@
###########################################################################
def test():
- import sys
import getopt
try:
opts, args = getopt.getopt(sys.argv[1:], 'hp')
except getopt.error, msg:
- print >>sys.stderr, str(msg) + '\n\n' + __doc__
+ print >> sys.stderr, str(msg) + '\n\n' + __doc__
sys.exit()
print_message = False
for opt, arg in opts:
if opt == '-h':
- print >>sys.stderr, __doc__
+ print >> sys.stderr, __doc__
sys.exit()
elif opt == '-p':
print_message = True
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