[Spambayes-checkins] spambayes/spambayes FileCorpus.py,1.8,1.9
Skip Montanaro
montanaro at users.sourceforge.net
Thu Dec 11 13:41:36 EST 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv1442
Modified Files:
FileCorpus.py
Log Message:
conservative pychecker cleanup
Index: FileCorpus.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/FileCorpus.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** FileCorpus.py 30 Sep 2003 03:05:13 -0000 1.8
--- FileCorpus.py 11 Dec 2003 18:41:34 -0000 1.9
***************
*** 88,92 ****
from spambayes import message
from spambayes import storage
! import sys, os, gzip, fnmatch, getopt, errno, time, stat
from spambayes.Options import options
--- 88,92 ----
from spambayes import message
from spambayes import storage
! import sys, os, gzip, fnmatch, getopt, time, stat
from spambayes.Options import options
***************
*** 271,275 ****
'''Instance as a representative string'''
- elip = ''
sub = self.as_string()
--- 271,274 ----
***************
*** 298,302 ****
try:
stats = os.stat(self.pathname())
! except OSError, e:
ctime = time.time()
else:
--- 297,301 ----
try:
stats = os.stat(self.pathname())
! except OSError:
ctime = time.time()
else:
***************
*** 506,510 ****
raise
else:
! for filename in os.listdir(dirname):
fn = os.path.join(dirname, filename)
os.unlink(fn)
--- 505,509 ----
raise
else:
! for filename in flist:
fn = os.path.join(dirname, filename)
os.unlink(fn)
More information about the Spambayes-checkins
mailing list