Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/mixins/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/mixins/

Reply

Author limodou
Full name limodou
Date 2005-02-07 05:23:03 PST
Message User: limodou
Date: 05/02/07 05:23:03

Modified:
 /newedit/src/mixins/
  Preference.py

Log:
 bug fix

File Changes:

Directory: /newedit/src/mixins/
===============================

File [changed]: Preference.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/P​reference.py?r1=1.4​&r2=1.5
Delta lines: +2 -2
-------------------
--- Preference.py 7 Feb 2005 13:11:02 -0000 1.4
+++ Preference.py 7 Feb 2005 13:23:03 -0000 1.5
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Preference.py,v 1.4 2005/02/07 13:11:02 limodou Exp $
+# $Id: Preference.py,v 1.5 2005/02/07 13:23:03 limodou Exp $
 
 from modules import Mixin
 from modules.Debug import debug
@@ -52,13 +52,13 @@
     def save(self, filename=''):
         if not filename:
             filename = self.defaultfile
- pickle.dump(self, open(filename, 'wb'))
+ pickle.dump(self, open(filename, 'w'))
 
     def load(self, filename=''):
         if not filename:
             filename = self.defaultfile
         if os.path.exists(filename):
- obj = pickle.load(open(filename, 'rb'))
+ obj = pickle.load(open(filename))
             for k, v in obj.__dict__.items():
                 if hasattr(self, k):
                     setattr(self, k, v)




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/mixins/ limodou limodou 2005-02-07 05:23:03 PST
Messages per page: