[Buildbot-commits] buildbot/buildbot/slave commands.py,1.77,1.78

Brian Warner warner at users.sourceforge.net
Sat Mar 24 18:40:25 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/slave
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15510/buildbot/slave

Modified Files:
	commands.py 
Log Message:
[project @ filetransfer: open files in 'b' mode to avoid text-conversion problems. Thanks to Phil Thompson for the patch. Fixes SF#1674927.]

Original author: warner at lothar.com
Date: 2007-03-24 18:34:35

Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- commands.py	23 Jan 2007 19:24:11 -0000	1.77
+++ commands.py	24 Mar 2007 18:40:23 -0000	1.78
@@ -701,7 +701,7 @@
                                  self.workdir,
                                  os.path.expanduser(self.filename))
         try:
-            self.fp = open(self.path, 'r')
+            self.fp = open(self.path, 'rb')
             if self.debug:
                 log.msg('Opened %r for upload' % self.path)
         except:
@@ -813,7 +813,7 @@
                                  self.workdir,
                                  os.path.expanduser(self.filename))
         try:
-            self.fp = open(self.path, 'w')
+            self.fp = open(self.path, 'wb')
             if self.debug:
                 log.msg('Opened %r for download' % self.path)
             if self.mode is not None:





More information about the Commits mailing list