From: <cl...@us...> - 2003-04-26 20:20:07
|
Update of /cvsroot/todo-manager/todo-manager In directory sc8-pr-cvs1:/tmp/cvs-serv22270 Modified Files: main.py Log Message: Eugene Rimsky suggested that file.write(..., 'w') be changed to 'wb'. It doesn't seem to hurt anything and supposedly it helps with endline chars on various OSes. So here it is, a one character addition. Index: main.py =================================================================== RCS file: /cvsroot/todo-manager/todo-manager/main.py,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- main.py 6 Apr 2003 19:30:59 -0000 1.74 +++ main.py 26 Apr 2003 20:19:58 -0000 1.75 @@ -347,7 +347,7 @@ filename = "%s%s" %(filename, ext[1:]) try: - file = open(filename, 'w') + file = open(filename, 'wb') except IOError: self.interface_call(ui, "display_error", _("File Error"), _("The file can't be written. You may not be permitted to write to the drive.")) |