From: <cl...@us...> - 2003-05-04 15:44:59
|
Update of /cvsroot/todo-manager/todo-manager In directory sc8-pr-cvs1:/tmp/cvs-serv5560 Modified Files: main.py Log Message: Backing out that change I made on Friday. That "unneaded" code is really neaded. Imagine that. Index: main.py =================================================================== RCS file: /cvsroot/todo-manager/todo-manager/main.py,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- main.py 2 May 2003 04:36:38 -0000 1.79 +++ main.py 4 May 2003 15:38:09 -0000 1.80 @@ -406,7 +406,9 @@ file.close() # Write the file - self.__ext_save_file(filename=self.__tmpfile) + file = open(self.__tmpfile, 'wb') + self.__save_file(self.__dup_task_list(), file) + file.close() def __clear_tmpfile(self): if self.__tmpfile: @@ -481,7 +483,9 @@ file.close() # Write to the original - self.__ext_save_file(filename=origfile) + file = open(origfile, 'wb') + self.__save_file(self.__dup_task_list(), file) + file.close() self.__current_file = origfile |