twisted.internet.protocol

Here are the examples of the python api twisted.internet.protocol taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

3 Source : utils.py
with MIT License
from autofelix

def _callProtocolWithDeferred(protocol, executable, args, env, path,
                              reactor=None, protoArgs=()):
    if reactor is None:
        from twisted.internet import reactor

    d = defer.Deferred()
    p = protocol(d, *protoArgs)
    reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
    return d



class _UnexpectedErrorOutput(IOError):

3 Source : utils.py
with The Unlicense
from dspray95

def _callProtocolWithDeferred(protocol, executable, args, env, path, reactor=None):
    if reactor is None:
        from twisted.internet import reactor

    d = defer.Deferred()
    p = protocol(d)
    reactor.spawnProcess(p, executable, (executable,)+tuple(args), env, path)
    return d



class _UnexpectedErrorOutput(IOError):

3 Source : __init__.py
with Apache License 2.0
from v3io

def _callProtocolWithDeferred(protocol, executable, args, env, path, reactor=None):
    if reactor is None:
        from twisted.internet import reactor

    d = defer.Deferred()
    p = protocol(d)
    reactor.spawnProcess(p, executable, (executable,) + tuple(args), env, path)
    return d


class _EverythingGetter(protocol.ProcessProtocol):