subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1661202 - /subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
Date Fri, 20 Feb 2015 19:37:28 GMT
Author: rhuijben
Date: Fri Feb 20 19:37:28 2015
New Revision: 1661202

URL: http://svn.apache.org/r1661202
Log:
* subversion/tests/cmdline/svntest/sandbox.py
  (simple_append): Open file as binary to avoid problems in Windows.

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py?rev=1661202&r1=1661201&r2=1661202&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Fri Feb 20 19:37:28 2015
@@ -424,7 +424,7 @@ class Sandbox:
   def simple_append(self, dest, contents, truncate=False):
     """Append CONTENTS to file DEST, optionally truncating it first.
        DEST is a relpath relative to the WC."""
-    open(self.ospath(dest), truncate and 'w' or 'a').write(contents)
+    open(self.ospath(dest), truncate and 'wb' or 'ab').write(contents)
 
   def simple_lock(self, *targets):
     """Lock TARGETS in the WC.



Mime
View raw message