[pypy-svn] r46418 - pypy/dist/pypy/translator/sandbox
arigo at codespeak.net
arigo at codespeak.net
Sat Sep 8 12:09:12 CEST 2007
Author: arigo
Date: Sat Sep 8 12:09:11 2007
New Revision: 46418
Modified:
pypy/dist/pypy/translator/sandbox/sandlib.py
Log:
Fix --timeout in the presence of ledit.
Modified: pypy/dist/pypy/translator/sandbox/sandlib.py
==============================================================================
--- pypy/dist/pypy/translator/sandbox/sandlib.py (original)
+++ pypy/dist/pypy/translator/sandbox/sandlib.py Sat Sep 8 12:09:11 2007
@@ -320,7 +320,8 @@
if fd == 0:
if self._input is None:
return ""
- elif self._input.isatty():
+ elif (getattr(self, 'virtual_console_isatty', False) or
+ self._input.isatty()):
# don't wait for all 'size' chars if reading from a tty,
# to avoid blocking. Instead, stop after reading a line.
More information about the Pypy-commit
mailing list