[Buildbot-commits] buildbot/buildbot/steps transfer.py,1.9,1.10

Brian Warner warner at users.sourceforge.net
Tue Apr 17 06:38:53 UTC 2007


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

Modified Files:
	transfer.py 
Log Message:
[project @ update CREDITS]

Original author: warner at lothar.com

Date: 2007-04-17 06:38:12+00:00

Index: transfer.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/transfer.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- transfer.py	15 Apr 2007 01:28:47 -0000	1.9
+++ transfer.py	17 Apr 2007 06:38:51 -0000	1.10
@@ -16,7 +16,7 @@
 
     def __init__(self, destfile, maxsize, mode):
         self.destfile = destfile
-        self.fp = open(destfile, "w")
+        self.fp = open(destfile, "wb")
         if mode is not None:
             os.chmod(destfile, mode)
 	self.remaining = maxsize
@@ -240,7 +240,7 @@
 
         # setup structures for reading the file
         try:
-            fp = open(source, 'r')
+            fp = open(source, 'rb')
         except IOError:
             # if file does not exist, bail out with an error
             self.addCompleteLog('stderr',





More information about the Commits mailing list