|
Revision 24441, 0.9 kB
(checked in by thijs, 1 year ago)
|
Merge maintainer-email-2438: Get rid of references to maintainer email addresses from code.
Author: thijs
Reviewer: exarkun
Fixes: #2438
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 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: James Y Knight |
|---|
| 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 |
|---|