Author: futatuki
Date: Tue May 26 23:55:28 2020
New Revision: 1878144

URL: http://svn.apache.org/viewvc?rev=1878144&view=rev
Log:
* subversion/tests/cmdline/svndumpfilter_tests.py (filter_and_return_output)
  Use list complehension instead of map function, which returns iterator
  on Python 3, to get EOL translated list of lines on Windows.

Reported by: jcorvel
Tested by: jcorvel

Modified:
    subversion/trunk/subversion/tests/cmdline/svndumpfilter_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/svndumpfilter_tests.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svndumpfilter_tests.py?rev=1878144&r1=1878143&r2=1878144&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svndumpfilter_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svndumpfilter_tests.py Tue May 26 
23:55:28 2020
@@ -71,7 +71,7 @@ def filter_and_return_output(dump, bufsi
   # Since we call svntest.main.run_command_stdin() in binary mode,
   # normalize the stderr line endings on Windows ourselves.
   if sys.platform == 'win32':
-    errput = map(lambda x : x.replace('\r\n', '\n'), errput)
+    errput = [x.replace('\r\n', '\n') for x in errput]
 
   return output, errput
 


Reply via email to