[Spambayes-checkins] spambayes/spambayes storage.py,1.58,1.59
Tony Meyer
anadelonbrin at users.sourceforge.net
Fri Apr 7 04:30:00 CEST 2006
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23599/spambayes
Modified Files:
storage.py
Log Message:
Don't store on close when read-only.
Index: storage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/storage.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** storage.py 21 Feb 2006 02:52:02 -0000 1.58
--- storage.py 7 Apr 2006 02:29:57 -0000 1.59
***************
*** 788,792 ****
# closed and cause problems. For now, saving seems to make sense
# (and we can always add abort methods if they are ever needed).
! self.store()
# Do the closing.
--- 788,793 ----
# closed and cause problems. For now, saving seems to make sense
# (and we can always add abort methods if they are ever needed).
! if self.mode != 'r':
! self.store()
# Do the closing.
More information about the Spambayes-checkins
mailing list