aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Twisted/py3/twisted/internet/stdio.py
diff options
context:
space:
mode:
authorshmel1k <shmel1k@ydb.tech>2023-11-26 18:16:14 +0300
committershmel1k <shmel1k@ydb.tech>2023-11-26 18:43:30 +0300
commitb8cf9e88f4c5c64d9406af533d8948deb050d695 (patch)
tree218eb61fb3c3b96ec08b4d8cdfef383104a87d63 /contrib/python/Twisted/py3/twisted/internet/stdio.py
parent523f645a83a0ec97a0332dbc3863bb354c92a328 (diff)
downloadydb-b8cf9e88f4c5c64d9406af533d8948deb050d695.tar.gz
add kikimr_configure
Diffstat (limited to 'contrib/python/Twisted/py3/twisted/internet/stdio.py')
-rw-r--r--contrib/python/Twisted/py3/twisted/internet/stdio.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/python/Twisted/py3/twisted/internet/stdio.py b/contrib/python/Twisted/py3/twisted/internet/stdio.py
new file mode 100644
index 0000000000..3196898bf6
--- /dev/null
+++ b/contrib/python/Twisted/py3/twisted/internet/stdio.py
@@ -0,0 +1,37 @@
+# -*- test-case-name: twisted.test.test_stdio -*-
+# Copyright (c) Twisted Matrix Laboratories.
+# See LICENSE for details.
+
+"""
+Standard input/out/err support.
+
+This module exposes one name, StandardIO, which is a factory that takes an
+IProtocol provider as an argument. It connects that protocol to standard input
+and output on the current process.
+
+It should work on any UNIX and also on Win32 (with some caveats: due to
+platform limitations, it will perform very poorly on Win32).
+
+Future Plans::
+
+ support for stderr, perhaps
+ Rewrite to use the reactor instead of an ad-hoc mechanism for connecting
+ protocols to transport.
+
+
+Maintainer: James Y Knight
+"""
+
+
+from twisted.python.runtime import platform
+
+if platform.isWindows():
+ from twisted.internet._win32stdio import StandardIO, Win32PipeAddress as PipeAddress
+
+else:
+ from twisted.internet._posixstdio import ( # type: ignore[assignment]
+ PipeAddress,
+ StandardIO,
+ )
+
+__all__ = ["StandardIO", "PipeAddress"]