| OLD | NEW |
| (Empty) |
| 1 # -*- test-case-name: twisted.test.test_process.ProcessTestCase.testStdio -*- | |
| 2 | |
| 3 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. | |
| 4 # See LICENSE for details. | |
| 5 | |
| 6 """ | |
| 7 Standard input/out/err support. | |
| 8 | |
| 9 This module exposes one name, StandardIO, which is a factory that takes an | |
| 10 IProtocol provider as an argument. It connects that protocol to standard input | |
| 11 and output on the current process. | |
| 12 | |
| 13 It should work on any UNIX and also on Win32 (with some caveats: due to | |
| 14 platform limitations, it will perform very poorly on Win32). | |
| 15 | |
| 16 Future Plans:: | |
| 17 | |
| 18 support for stderr, perhaps | |
| 19 Rewrite to use the reactor instead of an ad-hoc mechanism for connecting | |
| 20 protocols to transport. | |
| 21 | |
| 22 | |
| 23 Maintainer: U{James Y Knight <mailto:foom@fuhm.net>} | |
| 24 """ | |
| 25 | |
| 26 from twisted.python.runtime import platform | |
| 27 | |
| 28 if platform.isWindows(): | |
| 29 from twisted.internet._win32stdio import StandardIO | |
| 30 else: | |
| 31 from twisted.internet._posixstdio import StandardIO | |
| OLD | NEW |