subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r931769 - /subversion/trunk/subversion/tests/cmdline/svntest/main.py
Date Thu, 08 Apr 2010 03:50:03 GMT
Author: gstein
Date: Thu Apr  8 03:50:03 2010
New Revision: 931769

URL: http://svn.apache.org/viewvc?rev=931769&view=rev
Log:
Followup to r931750.

* subversion/tests/cmdline/svntest/main.py:
  (flie_substitute): fix bug I introduced in prior change

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

Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=931769&r1=931768&r2=931769&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Thu Apr  8 03:50:03 2010
@@ -696,7 +696,7 @@ def file_write(path, contents, mode='w')
 # For replacing parts of contents in an existing file, with new content.
 def file_substitute(path, contents, new_contents):
   """Replace the CONTENTS in the file at PATH using the NEW_CONTENTS"""
-  fcontent = open(path, 'r').replace(contents, new_contents)
+  fcontent = open(path, 'r').read().replace(contents, new_contents)
   open(path, 'w').write(fcontent)
 
 # For creating blank new repositories



Mime
View raw message