From: <pj...@us...> - 2008-11-23 22:22:07
|
Revision: 5621 http://jython.svn.sourceforge.net/jython/?rev=5621&view=rev Author: pjenvey Date: 2008-11-23 22:22:05 +0000 (Sun, 23 Nov 2008) Log Message: ----------- don't buffer the various popen2 helper streams in hopes to make test_cmd_line less flakey Modified Paths: -------------- trunk/jython/Lib/popen2.py Modified: trunk/jython/Lib/popen2.py =================================================================== --- trunk/jython/Lib/popen2.py 2008-11-23 21:56:25 UTC (rev 5620) +++ trunk/jython/Lib/popen2.py 2008-11-23 22:22:05 UTC (rev 5621) @@ -44,7 +44,7 @@ the close method. """ def __init__(self, stream, process, name): - self._file = FileUtil.wrap(stream) + self._file = FileUtil.wrap(stream, 0) self._process = process def __getattr__(self, name): @@ -93,10 +93,10 @@ bufsize ) - self.tochild = FileUtil.wrap(self._tochild) - self.fromchild = FileUtil.wrap(self._fromchild) + self.tochild = FileUtil.wrap(self._tochild, 0) + self.fromchild = FileUtil.wrap(self._fromchild, 0) if self._childerr: - self.childerr = FileUtil.wrap(self._childerr) + self.childerr = FileUtil.wrap(self._childerr, 0) def _startChildWaiter(self): """Start a subthread that waits for the child process to exit.""" @@ -198,7 +198,7 @@ "%s-stderr" % self.process, self._close ) - return FileUtil.wrap(joinedStream) + return FileUtil.wrap(joinedStream, 0) def _close( self ): """Must be closed twice (once for each of the two joined pipes)""" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |