You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2010/04/08 05:50:03 UTC

svn commit: r931769 - /subversion/trunk/subversion/tests/cmdline/svntest/main.py

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