From: <cl...@us...> - 2003-05-02 04:36:42
|
Update of /cvsroot/todo-manager/todo-manager In directory sc8-pr-cvs1:/tmp/cvs-serv3189 Modified Files: main.py Log Message: Removed some unneaded file opening code. Index: main.py =================================================================== RCS file: /cvsroot/todo-manager/todo-manager/main.py,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- main.py 27 Apr 2003 03:44:39 -0000 1.78 +++ main.py 2 May 2003 04:36:38 -0000 1.79 @@ -406,9 +406,7 @@ file.close() # Write the file - file = open(self.__tmpfile, 'w') - self.__save_file(self.__dup_task_list(), file) - file.close() + self.__ext_save_file(filename=self.__tmpfile) def __clear_tmpfile(self): if self.__tmpfile: @@ -483,9 +481,7 @@ file.close() # Write to the original - file = open(origfile, 'w') - self.__save_file(self.__dup_task_list(), file) - file.close() + self.__ext_save_file(filename=origfile) self.__current_file = origfile |