Author: philip
Date: Tue Jul 3 10:43:09 2012
New Revision: 1356668
URL: http://svn.apache.org/viewvc?rev=1356668&view=rev
Log:
Use buffered IO for the pipe in the Python bindings so that
the diff output is read in blocks rather than byte-by-byte.
* subversion/bindings/swig/python/svn/fs.py
(get_pipe): Use buffered IO.
Patch by: harry{_AT_}hjackson.org
Modified:
subversion/trunk/subversion/bindings/swig/python/svn/fs.py
Modified: subversion/trunk/subversion/bindings/swig/python/svn/fs.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/svn/fs.py?rev=1356668&r1=1356667&r2=1356668&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/svn/fs.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/svn/fs.py Tue Jul 3
10:43:09 2012
@@ -115,7 +115,7 @@ class FileDiff:
+ [self.tempfile1, self.tempfile2]
# open the pipe, and return the file object for reading from the child.
- p = _subprocess.Popen(cmd, stdout=_subprocess.PIPE,
+ p = _subprocess.Popen(cmd, stdout=_subprocess.PIPE, bufsize=-1,
close_fds=_sys.platform != "win32")
return p.stdout