[Spambayes-checkins] spambayes/Outlook2000 manager.py,1.8,1.9
Tim Peters
tim_one@users.sourceforge.net
Sat, 19 Oct 2002 15:58:01 -0700
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory usw-pr-cvs1:/tmp/cvs-serv23851
Modified Files:
manager.py
Log Message:
LoadConfig(): Moved the pickle file-close up to the logical place.
Index: manager.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/manager.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** manager.py 19 Oct 2002 22:57:06 -0000 1.8
--- manager.py 19 Oct 2002 22:57:59 -0000 1.9
***************
*** 103,106 ****
--- 103,107 ----
try:
ret = cPickle.load(f)
+ f.close()
if self.verbose > 1:
print "Loaded configuration from '%s':" % self.config_filename
***************
*** 113,117 ****
import traceback
traceback.print_exc()
- f.close()
return ret
--- 114,117 ----