subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1705709 - /subversion/trunk/subversion/tests/cmdline/svntest/tree.py
Date Mon, 28 Sep 2015 15:47:45 GMT
Author: rhuijben
Date: Mon Sep 28 15:47:45 2015
New Revision: 1705709

URL: http://svn.apache.org/viewvc?rev=1705709&view=rev
Log:
Fix a diagnostics output escaping issue in the test suite by using a bit more
standard code and less test suite specific code.

* subversion/tests/cmdline/svntest/tree.py
  (print_script): Just let Python format property dictionaries.

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

Modified: subversion/trunk/subversion/tests/cmdline/svntest/tree.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/tree.py?rev=1705709&r1=1705708&r2=1705709&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/tree.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/tree.py Mon Sep 28 15:47:45 2015
@@ -285,16 +285,7 @@ class SVNTreeNode:
     if self.props:
       if comma:
         line += ", "
-      line += "props={"
-      comma = False
-
-      for name in self.props:
-        if comma:
-          line += ", "
-        line += "'%s':'%s'" % (name, self.props[name])
-        comma = True
-
-      line += "}"
+      line += ("props=%s" % self.props)
       comma = True
 
     for name in self.atts:



Mime
View raw message