From 1c0996eea7a39ef0357b5ece630c1bdf69680f71 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 20 Jan 2011 18:14:26 -0800 Subject: SpawnProcess: read proc with unbuffered fdopen This enables pty support in python3, by using unbuffered fdopen to avoid http://bugs.python.org/issue5380. --- pym/portage/util/_pty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/util/_pty.py') diff --git a/pym/portage/util/_pty.py b/pym/portage/util/_pty.py index 7e769d204..c96bf74fd 100644 --- a/pym/portage/util/_pty.py +++ b/pym/portage/util/_pty.py @@ -1,4 +1,4 @@ -# Copyright 2010 Gentoo Foundation +# Copyright 2010-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import array @@ -28,7 +28,7 @@ def _can_test_pty_eof(): """ return platform.system() in ("Linux",) -def _test_pty_eof(fdopen_buffered=True): +def _test_pty_eof(fdopen_buffered=False): """ Returns True if this issues is fixed for the currently running version of python: http://bugs.python.org/issue5380 -- cgit v1.2.3-1-g7c22