Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/application/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/application/reactors.pyc

ó
[³XMc@s dZddlmZmZmZddlmZmZddlm	Z	defd„ƒYZ
defd„ƒYZd	e
fd
„ƒYZd„Zd„Zd
S(sT
Plugin-based system for enumerating available reactors and installing one of
them.
iÿÿÿÿ(t	Interfacet	Attributet
implements(tIPlugint
getPlugins(tnamedAnytIReactorInstallercBs/eZdZedƒZedƒZd„ZRS(sB
    Definition of a reactor which can probably be installed.
    sE
    A brief string giving the user-facing name of this reactor.
    sK
    A longer string giving a user-facing description of this reactor.
    cCsdS(s'
        Install this reactor.
        N((((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pytinstalls(t__name__t
__module__t__doc__Rt	shortNametdescriptionR(((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyRs		t
NoSuchReactorcBseZdZRS(sT
    Raised when an attempt is made to install a reactor which cannot be found.
    (RR	R
(((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyR
&stReactorcBs-eZdZeeeƒd„Zd„ZRS(s|
    @ivar moduleName: The fully-qualified Python name of the module of which
    the install callable is an attribute.
    cCs||_||_||_dS(N(Rt
moduleNameR(tselfRRR((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyt__init__4s		cCst|jƒjƒdS(N(RRR(R((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyR:s(RR	R
RRRRR(((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyR,s
	cCs
ttƒS(s=
    Return an iterator of L{IReactorInstaller} plugins.
    (RR(((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pytgetReactorTypes?scCs=x*tƒD]}|j|kr
|jƒSq
Wt|ƒ‚dS(sß
    Install the reactor with the given C{shortName} attribute.

    @raise NoSuchReactor: If no reactor is found with a matching C{shortName}.

    @raise: anything that the specified reactor can raise when installed.
    N(RRRR
(Rt	installer((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pytinstallReactorGsN(R
tzope.interfaceRRRttwisted.pluginRRttwisted.python.reflectRRtKeyErrorR
tobjectRRR(((s@/usr/lib/python2.7/dist-packages/twisted/application/reactors.pyt<module>s