[Spambayes-checkins] spambayes pop3proxy.py,1.50,1.51

Richie Hindle richiehindle at users.sourceforge.net
Sun Feb 2 23:53:14 EST 2003


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv11575

Modified Files:
	pop3proxy.py 
Log Message:
Run the database filename through os.path.expanduser().


Index: pop3proxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pop3proxy.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** pop3proxy.py	31 Jan 2003 19:13:41 -0000	1.50
--- pop3proxy.py	3 Feb 2003 07:53:12 -0000	1.51
***************
*** 1156,1165 ****
              options.pop3proxy_persistent_storage_file = \
                          '_pop3proxy_test.pickle'   # This is never saved.
          if self.useDB:
!             self.bayes = storage.DBDictClassifier( \
!                                 options.pop3proxy_persistent_storage_file)
          else:
!             self.bayes = storage.PickledClassifier(\
!                                 options.pop3proxy_persistent_storage_file)
          print "Done."
  
--- 1156,1165 ----
              options.pop3proxy_persistent_storage_file = \
                          '_pop3proxy_test.pickle'   # This is never saved.
+         filename = options.pop3proxy_persistent_storage_file
+         filename = os.path.expanduser(filename)
          if self.useDB:
!             self.bayes = storage.DBDictClassifier(filename)
          else:
!             self.bayes = storage.PickledClassifier(filename)
          print "Done."
  





More information about the Spambayes-checkins mailing list