Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias TryExcept body ImportFrom alias identifier alias identifier alias identifier handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias identifier alias identifier alias identifier handlers ExceptHandler type NameLoad body ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad ImportFrom alias identifier ImportFrom alias identifier orelse ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias Assign NameStore Call NameLoad NameLoad Str Num ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr TryExcept body If NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call Call NameLoad NameLoad AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Lambda arguments args defaults vararg kwarg NameLoad Assign AttributeStore NameLoad attr Lambda arguments args defaults vararg kwarg NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr NameLoad NameLoad body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Return orelse Return AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Num Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Num AttributeLoad NameLoad attr TryExcept body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad NameLoad body Return Num orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad orelse Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults BinOpAdd TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad Str body Return Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Delete AttributeDel NameLoad attr AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad Return TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body If CompareEq NameLoad NameLoad body Pass orelse If BoolOpOr CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad Return Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign NameStore BinOpBitOr AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num NameLoad Index Num Index Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore NameLoad If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body TryExcept body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareEq NameLoad Str CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Slice Num Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Num For NameStore Call NameLoad NameLoad body If AttributeLoad NameLoad attr body Return TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Break orelse If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Continue orelse If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index Num Break Raise Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Continue Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr TryFinally body Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Various asynchronous TCP/IP classes.

End users shouldn't use this module directly - use the reactor APIs instead.
 N/A types N/A socket N/A sys N/A operator N/A struct zope.interface implements twisted.python.runtime platformType twisted.python versions deprecate N/A N/A twisted.internet._newtls ConnectionMixin _TLSConnectionMixin ClientMixin _TLSClientMixin ServerMixin _TLSServerMixin N/A N/A N/A ImportError N/A N/A N/A twisted.internet._oldtls ConnectionMixin _TLSConnectionMixin ClientMixin _TLSClientMixin ServerMixin _TLSServerMixin N/A N/A N/A ImportError N/A _TLSConnectionMixin N/A object N/A N/A TLS False N/A _TLSClientMixin N/A object N/A N/A N/A _TLSServerMixin N/A object N/A N/A N/A N/A N/A platformType win32 N/A N/A EPERM N/A object errno WSAEINVAL EINVAL errno WSAEWOULDBLOCK EWOULDBLOCK errno WSAEINPROGRESS EINPROGRESS errno WSAEALREADY EALREADY errno WSAECONNRESET ECONNRESET errno WSAEISCONN EISCONN errno WSAENOTCONN ENOTCONN errno WSAEINTR EINTR errno WSAENOBUFS ENOBUFS errno WSAEMFILE EMFILE N/A ENFILE N/A object N/A ENOMEM N/A object N/A EAGAIN EWOULDBLOCK errno WSAECONNRESET ECONNABORTED twisted.python.win32 formatError strerror N/A errno EPERM errno EINVAL errno EWOULDBLOCK errno EINPROGRESS errno EALREADY errno ECONNRESET errno EISCONN errno ENOTCONN errno EINTR errno ENOBUFS errno EMFILE errno ENFILE errno ENOMEM errno EAGAIN errno ECONNABORTED os strerror errno errorcode twisted.internet base address fdesc twisted.internet.task deferLater twisted.python log failure reflect twisted.python.util unsignedID untilConcludes twisted.internet.error CannotListenError twisted.internet abstract main interfaces error N/A _AI_NUMERICSERV N/A getattr socket AI_NUMERICSERV 0 _SocketCloser N/A object N/A N/A _socketShutdownMethod shutdown _closeSocket N/A N/A self orderly N/A N/A N/A skt N/A self socket N/A N/A N/A orderly N/A N/A N/A N/A self _socketShutdownMethod None N/A N/A N/A N/A getattr skt N/A self _socketShutdownMethod 2 N/A N/A N/A N/A N/A self socket setsockopt N/A socket SOL_SOCKET N/A socket SO_LINGER N/A N/A struct pack ii 1 0 N/A N/A N/A N/A socket error N/A N/A N/A N/A N/A N/A N/A skt close N/A N/A N/A N/A socket error N/A N/A N/A N/A _AbortingMixin N/A object N/A N/A 
    Common implementation of C{abortConnection}.

    @ivar _aborting: Set to C{True} when C{abortConnection} is called.
    @type _aborting: C{bool}
     N/A _aborting False abortConnection N/A N/A self N/A N/A N/A 
        Aborts the connection immediately, dropping any buffered data.

        @since: 11.1
         N/A N/A N/A self disconnected N/A self _aborting N/A N/A N/A N/A self _aborting True N/A N/A N/A self stopReading N/A N/A N/A self stopWriting N/A N/A self doRead N/A N/A N/A N/A args kwargs None N/A N/A self doWrite N/A N/A N/A N/A args kwargs None N/A N/A N/A N/A self reactor callLater 0 N/A self connectionLost N/A N/A failure Failure N/A N/A error ConnectionAborted N/A N/A Connection N/A _TLSConnectionMixin N/A abstract FileDescriptor _SocketCloser _AbortingMixin N/A N/A 
    Superclass of all socket-based FileDescriptors.

    This is an abstract superclass of all objects which represent a TCP/IP
    connection based socket.

    @ivar logstr: prefix used when logging events related to this connection.
    @type logstr: C{str}
     N/A N/A implements N/A interfaces ITCPTransport N/A interfaces ISystemHandle __init__ N/A N/A self skt protocol reactor N/A None N/A N/A N/A N/A N/A abstract FileDescriptor __init__ self reactor reactor N/A N/A self socket skt N/A N/A N/A N/A self socket setblocking 0 N/A N/A self fileno N/A skt fileno N/A N/A self protocol protocol N/A getHandle N/A N/A self N/A N/A N/A Return the socket for this connection. N/A N/A self socket N/A doRead N/A N/A self N/A N/A N/A Calls self.protocol.dataReceived with all available data.

        This reads up to self.bufferSize bytes of data from its socket, then
        calls self.dataReceived(data) to process it.  If the connection is not
        lost through an error in the physical recv(), this function will return
        the result of the dataReceived call.
         N/A N/A N/A data N/A N/A N/A self socket recv N/A self bufferSize N/A N/A N/A N/A socket error N/A se N/A N/A N/A N/A N/A se args N/A 0 EWOULDBLOCK N/A N/A N/A N/A N/A main CONNECTION_LOST N/A N/A N/A self _dataReceived data N/A _dataReceived N/A N/A self data N/A N/A N/A N/A data N/A N/A N/A main CONNECTION_DONE N/A rval N/A N/A N/A self protocol dataReceived data N/A N/A rval None N/A N/A offender N/A N/A self protocol dataReceived N/A warningFormat Returning a value other than None from %(fqpn)s is deprecated since %(version)s. N/A warningString N/A N/A deprecate getDeprecationWarningString offender N/A N/A versions Version Twisted 11 0 0 format warningFormat N/A N/A N/A deprecate warnAboutFunction offender warningString N/A rval N/A writeSomeData N/A N/A self data N/A N/A N/A 
        Write as much as possible of the given data to this TCP connection.

        This sends up to C{self.SEND_LIMIT} bytes from C{data}.  If the
        connection is lost, an exception is returned.  Otherwise, the number
        of bytes successfully written is returned.
         N/A limitedData N/A buffer data 0 N/A self SEND_LIMIT N/A N/A N/A N/A untilConcludes N/A N/A self socket send limitedData N/A N/A N/A N/A socket error N/A se N/A N/A N/A N/A N/A se args N/A 0 N/A EWOULDBLOCK ENOBUFS N/A N/A 0 N/A N/A N/A main CONNECTION_LOST N/A _closeWriteConnection N/A N/A self N/A N/A N/A N/A N/A N/A N/A getattr N/A self socket N/A self _socketShutdownMethod 1 N/A N/A N/A N/A socket error N/A N/A N/A p N/A N/A interfaces IHalfCloseableProtocol N/A self protocol None N/A p N/A N/A N/A N/A N/A N/A p writeConnectionLost N/A N/A N/A N/A f N/A N/A failure Failure N/A N/A N/A log err N/A N/A N/A self connectionLost f N/A readConnectionLost N/A N/A self reason N/A N/A N/A p N/A N/A interfaces IHalfCloseableProtocol N/A self protocol None N/A p N/A N/A N/A N/A N/A N/A p readConnectionLost N/A N/A N/A N/A N/A N/A log err N/A N/A N/A self connectionLost N/A N/A failure Failure N/A N/A N/A N/A self connectionLost reason N/A connectionLost N/A N/A self reason N/A N/A N/A See abstract.FileDescriptor.connectionLost().
         N/A N/A N/A hasattr self socket N/A N/A N/A N/A N/A N/A abstract FileDescriptor connectionLost self reason N/A N/A N/A self _closeSocket N/A N/A N/A reason check N/A error ConnectionAborted N/A protocol N/A self protocol N/A N/A self protocol N/A N/A self socket N/A N/A self fileno N/A N/A N/A protocol connectionLost reason N/A N/A logstr Uninitialized logPrefix N/A N/A self N/A N/A N/A Return the prefix to log with when I own the logging thread.
         N/A N/A self logstr N/A getTcpNoDelay N/A N/A self N/A N/A N/A N/A N/A operator truth N/A N/A N/A self socket getsockopt N/A socket IPPROTO_TCP N/A socket TCP_NODELAY N/A setTcpNoDelay N/A N/A self enabled N/A N/A N/A N/A N/A N/A self socket setsockopt N/A socket IPPROTO_TCP N/A socket TCP_NODELAY enabled N/A getTcpKeepAlive N/A N/A self N/A N/A N/A N/A N/A operator truth N/A N/A N/A self socket getsockopt N/A socket SOL_SOCKET N/A socket SO_KEEPALIVE N/A setTcpKeepAlive N/A N/A self enabled N/A N/A N/A N/A N/A N/A self socket setsockopt N/A socket SOL_SOCKET N/A socket SO_KEEPALIVE enabled N/A N/A _BaseBaseClient N/A object N/A N/A 
    Code shared with other (non-POSIX) reactors for management of general
    outgoing connections.

    Requirements upon subclasses are documented as instance variables rather
    than abstract methods, in order to avoid MRO confusion, since this base is
    mixed in to unfortunately weird and distinctive multiple-inheritance
    hierarchies and many of these attributes are provided by peer classes
    rather than descendant classes in those hierarchies.

    @ivar addressFamily: The address family constant (C{socket.AF_INET},
        C{socket.AF_INET6}, C{socket.AF_UNIX}) of the underlying socket of this
        client connection.
    @type addressFamily: C{int}

    @ivar socketType: The socket type constant (C{socket.SOCK_STREAM} or
        C{socket.SOCK_DGRAM}) of the underlying socket.
    @type socketType: C{int}

    @ivar _requiresResolution: A flag indicating whether the address of this
        client will require name resolution.  C{True} if the hostname of said
        address indicates a name that must be resolved by hostname lookup,
        C{False} if it indicates an IP address literal.
    @type _requiresResolution: C{bool}

    @cvar _commonConnection: Subclasses must provide this attribute, which
        indicates the L{Connection}-alike class to invoke C{__init__} and
        C{connectionLost} on.
    @type _commonConnection: C{type}

    @ivar _stopReadingAndWriting: Subclasses must implement in order to remove
        this transport from its reactor's notifications in response to a
        terminated connection attempt.
    @type _stopReadingAndWriting: 0-argument callable returning C{None}

    @ivar _closeSocket: Subclasses must implement in order to close the socket
        in response to a terminated connection attempt.
    @type _closeSocket: 1-argument callable; see L{_SocketCloser._closeSocket}

    @ivar _collectSocketDetails: Clean up references to the attached socket in
        its underlying OS resource (such as a file descriptor or file handle),
        as part of post connection-failure cleanup.
    @type _collectSocketDetails: 0-argument callable returning C{None}.

    @ivar reactor: The class pointed to by C{_commonConnection} should set this
        attribute in its constructor.
    @type reactor: L{twisted.internet.interfaces.IReactorTime},
        L{twisted.internet.interfaces.IReactorCore},
        L{twisted.internet.interfaces.IReactorFDSet}
     N/A addressFamily N/A socket AF_INET N/A socketType N/A socket SOCK_STREAM _finishInit N/A N/A self whenDone skt error reactor N/A N/A N/A 
        Called by subclasses to continue to the stage of initialization where
        the socket connect attempt is made.

        @param whenDone: A 0-argument callable to invoke once the connection is
            set up.  This is C{None} if the connection could not be prepared
            due to a previous error.

        @param skt: The socket object to use to perform the connection.
        @type skt: C{socket._socketobject}

        @param error: The error to fail the connection with.

        @param reactor: The reactor to use for this client.
        @type reactor: L{twisted.internet.interfaces.IReactorTime}
         N/A whenDone N/A N/A N/A N/A N/A self _commonConnection __init__ self skt None reactor N/A N/A N/A reactor callLater 0 whenDone N/A N/A N/A N/A reactor callLater 0 N/A self failIfNotConnected error N/A resolveAddress N/A N/A self N/A N/A N/A 
        Resolve the name that was passed to this L{_BaseBaseClient}, if
        necessary, and then move on to attempting the connection once an
        address has been determined.  (The connection will be attempted
        immediately within this function if either name resolution can be
        synchronous or the address was an IP address literal.)

        @note: You don't want to call this method from outside, as it won't do
            anything useful; it's just part of the connection bootstrapping
            process.  Also, although this method is on L{_BaseBaseClient} for
            historical reasons, it's not used anywhere except for L{Client}
            itself.

        @return: C{None}
         N/A N/A self _requiresResolution N/A N/A d N/A N/A N/A self reactor resolve N/A N/A self addr N/A 0 N/A N/A N/A d addCallback N/A N/A N/A n N/A N/A N/A n N/A N/A self addr N/A 1 N/A N/A N/A d addCallbacks N/A self _setRealAddress N/A self failIfNotConnected N/A N/A N/A N/A self _setRealAddress N/A self addr N/A _setRealAddress N/A N/A self address N/A N/A N/A 
        Set the resolved address of this L{_BaseBaseClient} and initiate the
        connection attempt.

        @param address: Depending on whether this is an IPv4 or IPv6 connection
            attempt, a 2-tuple of C{(host, port)} or a 4-tuple of C{(host,
            port, flow, scope)}.  At this point it is a fully resolved address,
            and the 'host' portion will always be an IP address, not a DNS
            name.
         N/A N/A self realAddress address N/A N/A N/A self doConnect N/A failIfNotConnected N/A N/A self err N/A N/A N/A 
        Generic method called when the attemps to connect failed. It basically
        cleans everything it can: call connectionFailed, stop read and write,
        delete socket related members.
         N/A N/A N/A self connected N/A self disconnected N/A N/A hasattr self connector N/A N/A N/A N/A N/A self _stopReadingAndWriting N/A N/A N/A N/A N/A self _closeSocket True N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A self _collectSocketDetails N/A N/A N/A N/A self connector connectionFailed N/A N/A failure Failure err N/A N/A self connector N/A stopConnecting N/A N/A self N/A N/A N/A 
        If a connection attempt is still outstanding (i.e.  no connection is
        yet established), immediately stop attempting to connect.
         N/A N/A N/A self failIfNotConnected N/A N/A error UserError N/A connectionLost N/A N/A self reason N/A N/A N/A 
        Invoked by lower-level logic when it's time to clean the socket up.
        Depending on the state of the connection, either inform the attached
        L{Connector} that the connection attempt has failed, or inform the
        connected L{IProtocol} that the established connection has been lost.

        @param reason: the reason that the connection was terminated
        @type reason: L{Failure}
         N/A N/A N/A self connected N/A N/A N/A N/A self failIfNotConnected N/A N/A error ConnectError string reason N/A N/A N/A N/A N/A self _commonConnection connectionLost self reason N/A N/A N/A N/A self connector connectionLost reason N/A N/A BaseClient N/A _BaseBaseClient _TLSClientMixin Connection N/A N/A 
    A base class for client TCP (and similiar) sockets.

    @ivar realAddress: The address object that will be used for socket.connect;
        this address is an address tuple (the number of elements dependent upon
        the address family) which does not contain any names which need to be
        resolved.
    @type realAddress: C{tuple}

    @ivar _base: L{Connection}, which is the base class of this class which has
        all of the useful file descriptor methods.  This is used by
        L{_TLSServerMixin} to call the right methods to directly manipulate the
        transport, as is necessary for writing TLS-encrypted bytes (whereas
        those methods on L{Server} will go through another layer of TLS if it
        has been enabled).
     N/A _base Connection N/A _commonConnection Connection _stopReadingAndWriting N/A N/A self N/A N/A N/A 
        Implement the POSIX-ish (i.e.
        L{twisted.internet.interfaces.IReactorFDSet}) method of detaching this
        socket from the reactor for L{_BaseBaseClient}.
         N/A N/A hasattr self reactor N/A N/A N/A N/A self stopReading N/A N/A N/A self stopWriting N/A _collectSocketDetails N/A N/A self N/A N/A N/A 
        Clean up references to the socket and its file descriptor.

        @see: L{_BaseBaseClient}
         N/A N/A self socket N/A self fileno N/A createInternetSocket N/A N/A self N/A N/A N/A (internal) Create a non-blocking socket using
        self.addressFamily, self.socketType.
         N/A s N/A N/A socket socket N/A self addressFamily N/A self socketType N/A N/A N/A s setblocking 0 N/A N/A N/A fdesc _setCloseOnExec N/A N/A s fileno N/A s N/A doConnect N/A N/A self N/A N/A N/A 
        Initiate the outgoing connection attempt.

        @note: Applications do not need to call this method; it will be invoked
            internally as part of L{IReactorTCP.connectTCP}.
         N/A N/A self doWrite N/A self doConnect N/A N/A self doRead N/A self doConnect N/A N/A N/A hasattr self connector N/A N/A N/A err N/A N/A N/A self socket getsockopt N/A socket SOL_SOCKET N/A socket SO_ERROR N/A err N/A N/A N/A N/A self failIfNotConnected N/A N/A error getConnectError N/A err N/A strerror err N/A N/A N/A N/A connectResult N/A N/A N/A self socket connect_ex N/A self realAddress N/A N/A N/A N/A socket error N/A se N/A N/A connectResult N/A N/A se args N/A 0 N/A connectResult N/A N/A N/A connectResult EISCONN N/A N/A N/A N/A N/A N/A connectResult N/A EWOULDBLOCK EINPROGRESS EALREADY N/A N/A connectResult EINVAL N/A platformType win32 N/A N/A N/A N/A self startReading N/A N/A N/A self startWriting N/A N/A N/A N/A N/A self failIfNotConnected N/A N/A error getConnectError N/A connectResult N/A strerror connectResult N/A N/A N/A self doWrite N/A N/A self doRead N/A N/A N/A self stopReading N/A N/A N/A self stopWriting N/A N/A N/A self _connectDone N/A _connectDone N/A N/A self N/A N/A N/A 
        This is a hook for when a connection attempt has succeeded.

        Here, we build the protocol from the
        L{twisted.internet.protocol.ClientFactory} that was passed in, compute
        a log string, begin reading so as to send traffic to the newly built
        protocol, and finally hook up the protocol itself.

        This hook is overridden by L{ssl.Client} to initiate the TLS protocol.
         N/A N/A self protocol N/A N/A N/A self connector buildProtocol N/A N/A self getPeer N/A N/A self connected 1 N/A logPrefix N/A N/A self _getLogPrefix N/A self protocol N/A N/A self logstr N/A %s,client logPrefix N/A N/A N/A self startReading N/A N/A N/A N/A self protocol makeConnection self N/A N/A N/A _NUMERIC_ONLY N/A N/A socket AI_NUMERICHOST _AI_NUMERICSERV _resolveIPv6 N/A N/A ip port N/A N/A N/A 
    Resolve an IPv6 literal into an IPv6 address.

    This is necessary to resolve any embedded scope identifiers to the relevant
    C{sin6_scope_id} for use with C{socket.connect()}, C{socket.listen()}, or
    C{socket.bind()}; see U{RFC 3493 <https://tools.ietf.org/html/rfc3493>} for
    more information.

    @param ip: An IPv6 address literal.
    @type ip: C{str}

    @param port: A port number.
    @type port: C{int}

    @return: a 4-tuple of C{(host, port, flow, scope)}, suitable for use as an
        IPv6 address.

    @raise socket.gaierror: if either the IP or port is not numeric as it
        should be.
     N/A N/A N/A N/A N/A socket getaddrinfo ip port 0 0 0 _NUMERIC_ONLY N/A 0 N/A 4 N/A _BaseTCPClient N/A object N/A N/A 
    Code shared with other (non-POSIX) reactors for management of outgoing TCP
    connections (both TCPv4 and TCPv6).

    @note: In order to be functional, this class must be mixed into the same
        hierarchy as L{_BaseBaseClient}.  It would subclass L{_BaseBaseClient}
        directly, but the class hierarchy here is divided in strange ways out
        of the need to share code along multiple axes; specifically, with the
        IOCP reactor and also with UNIX clients in other reactors.

    @ivar _addressType: The Twisted _IPAddress implementation for this client
    @type _addressType: L{IPv4Address} or L{IPv6Address}

    @ivar connector: The L{Connector} which is driving this L{_BaseTCPClient}'s
        connection attempt.

    @ivar addr: The address that this socket will be connecting to.
    @type addr: If IPv4, a 2-C{tuple} of C{(str host, int port)}.  If IPv6, a
        4-C{tuple} of (C{str host, int port, int ignored, int scope}).

    @ivar createInternetSocket: Subclasses must implement this as a method to
        create a python socket object of the appropriate address family and
        socket type.
    @type createInternetSocket: 0-argument callable returning
        C{socket._socketobject}.
     N/A _addressType N/A address IPv4Address __init__ N/A N/A self host port bindAddress connector reactor N/A None N/A N/A N/A self connector connector N/A N/A self addr N/A host port N/A whenDone N/A self resolveAddress N/A err None N/A skt None N/A N/A N/A abstract isIPAddress host N/A N/A N/A self _requiresResolution False N/A N/A N/A N/A abstract isIPv6Address host N/A N/A N/A self _requiresResolution False N/A N/A self addr N/A _resolveIPv6 host port N/A N/A self addressFamily N/A socket AF_INET6 N/A N/A self _addressType N/A address IPv6Address N/A N/A N/A self _requiresResolution True N/A N/A N/A skt N/A N/A self createInternetSocket N/A N/A N/A N/A socket error N/A se N/A N/A err N/A N/A error ConnectBindError N/A N/A se args N/A 0 N/A N/A se args N/A 1 N/A whenDone None N/A N/A whenDone N/A bindAddress None N/A N/A N/A N/A N/A N/A abstract isIPv6Address N/A bindAddress N/A 0 N/A N/A bindinfo N/A _resolveIPv6 bindAddress N/A N/A bindinfo bindAddress N/A N/A N/A skt bind bindinfo N/A N/A N/A N/A socket error N/A se N/A N/A err N/A N/A error ConnectBindError N/A N/A se args N/A 0 N/A N/A se args N/A 1 N/A whenDone None N/A N/A N/A self _finishInit whenDone skt err reactor N/A getHost N/A N/A self N/A N/A N/A 
        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the address from which I am connecting.
         N/A N/A N/A self _addressType TCP N/A N/A N/A N/A self socket getsockname N/A 2 N/A getPeer N/A N/A self N/A N/A N/A 
        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the address that I am connected to.
         N/A N/A N/A self _addressType TCP N/A N/A self realAddress N/A 2 N/A __repr__ N/A N/A self N/A N/A N/A s N/A <%s to %s at %x> N/A N/A self __class__ N/A self addr N/A unsignedID self N/A s N/A N/A Client N/A _BaseTCPClient BaseClient N/A N/A 
    A transport for a TCP protocol; either TCPv4 or TCPv6.

    Do not create these directly; use L{IReactorTCP.connectTCP}.
     N/A Server N/A _TLSServerMixin Connection N/A N/A 
    Serverside socket-stream connection class.

    This is a serverside network connection transport; a socket which came from
    an accept() on a server.

    @ivar _base: L{Connection}, which is the base class of this class which has
        all of the useful file descriptor methods.  This is used by
        L{_TLSServerMixin} to call the right methods to directly manipulate the
        transport, as is necessary for writing TLS-encrypted bytes (whereas
        those methods on L{Server} will go through another layer of TLS if it
        has been enabled).
     N/A _base Connection N/A _addressType N/A address IPv4Address __init__ N/A N/A self sock protocol client server sessionno reactor N/A N/A N/A 
        Server(sock, protocol, client, server, sessionno)

        Initialize it with a socket, a protocol, a descriptor for my peer (a
        tuple of host, port describing the other end of the connection), an
        instance of Port, and a session number.
         N/A N/A N/A Connection __init__ self sock protocol reactor N/A N/A N/A len client 2 N/A N/A N/A self _addressType N/A address IPv6Address N/A N/A self server server N/A N/A self client client N/A N/A self sessionno sessionno N/A N/A self hostname N/A client N/A 0 N/A logPrefix N/A N/A self _getLogPrefix N/A self protocol N/A N/A self logstr N/A %s,%s,%s N/A logPrefix sessionno N/A self hostname N/A N/A N/A self server None N/A N/A N/A self repstr N/A <%s #%s on %s> N/A N/A N/A N/A self protocol __class__ __name__ N/A self sessionno N/A N/A self server _realPortNumber N/A N/A N/A self startReading N/A N/A self connected 1 N/A __repr__ N/A N/A self N/A N/A N/A 
        A string representation of this connection.
         N/A N/A self repstr N/A _fromConnectedSocket N/A N/A cls fileDescriptor addressFamily factory reactor N/A N/A N/A 
        Create a new L{Server} based on an existing connected I{SOCK_STREAM}
        socket.

        Arguments are the same as to L{Server.__init__}, except where noted.

        @param fileDescriptor: An integer file descriptor associated with a
            connected socket.  The socket must be in non-blocking mode.  Any
            additional attributes desired, such as I{FD_CLOEXEC}, must also be
            set already.

        @param addressFamily: The address family (sometimes called I{domain})
            of the existing socket.  For example, L{socket.AF_INET}.

        @return: A new instance of C{cls} wrapping the socket given by
            C{fileDescriptor}.
         N/A addressType N/A address IPv4Address N/A N/A addressFamily N/A socket AF_INET6 N/A N/A addressType N/A address IPv6Address N/A skt N/A N/A socket fromfd fileDescriptor addressFamily N/A socket SOCK_STREAM N/A addr N/A N/A skt getpeername N/A protocolAddr N/A addressType TCP N/A addr N/A 0 N/A addr N/A 1 N/A localPort N/A N/A N/A skt getsockname N/A 1 N/A protocol N/A N/A factory buildProtocol protocolAddr N/A N/A protocol None N/A N/A N/A N/A skt close N/A N/A self N/A cls skt protocol addr None N/A addr N/A 1 reactor N/A N/A self repstr N/A <%s #%s on %s> N/A N/A N/A N/A self protocol __class__ __name__ N/A self sessionno localPort N/A N/A N/A protocol makeConnection self N/A self N/A classmethod getHost N/A N/A self N/A N/A N/A 
        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the server's address.
         N/A N/A host port N/A N/A N/A N/A self socket getsockname N/A 2 N/A N/A N/A self _addressType TCP host port N/A getPeer N/A N/A self N/A N/A N/A 
        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the client's address.
         N/A N/A N/A self _addressType TCP N/A N/A self client N/A 2 N/A N/A Port N/A N/A base BasePort _SocketCloser N/A N/A 
    A TCP server port, listening for connections.

    When a connection is accepted, this will call a factory's buildProtocol
    with the incoming address as an argument, according to the specification
    described in L{twisted.internet.interfaces.IProtocolFactory}.

    If you wish to change the sort of transport that will be used, the
    C{transport} attribute will be called with the signature expected for
    C{Server.__init__}, so it can be replaced.

    @ivar deferred: a deferred created when L{stopListening} is called, and
        that will fire when connection is lost. This is not to be used it
        directly: prefer the deferred returned by L{stopListening} instead.
    @type deferred: L{defer.Deferred}

    @ivar disconnecting: flag indicating that the L{stopListening} method has
        been called and that no connections should be accepted anymore.
    @type disconnecting: C{bool}

    @ivar connected: flag set once the listen has successfully been called on
        the socket.
    @type connected: C{bool}

    @ivar _type: A string describing the connections which will be created by
        this port.  Normally this is C{"TCP"}, since this is a TCP port, but
        when the TLS implementation re-uses this class it overrides the value
        with C{"TLS"}.  Only used for logging.

    @ivar _preexistingSocket: If not C{None}, a L{socket.socket} instance which
        was created and initialized outside of the reactor and will be used to
        listen for connections (instead of a new socket being created by this
        L{Port}).
     N/A N/A implements N/A interfaces IListeningPort N/A socketType N/A socket SOCK_STREAM N/A transport Server N/A sessionno 0 N/A interface N/A backlog 50 N/A _type TCP N/A _realPortNumber None N/A _preexistingSocket None N/A addressFamily N/A socket AF_INET N/A _addressType N/A address IPv4Address __init__ N/A N/A self port factory backlog interface reactor N/A 50 None N/A N/A Initialize with a numeric port to listen on.
         N/A N/A N/A N/A base BasePort __init__ self reactor reactor N/A N/A self port port N/A N/A self factory factory N/A N/A self backlog backlog N/A N/A N/A abstract isIPv6Address interface N/A N/A N/A self addressFamily N/A socket AF_INET6 N/A N/A self _addressType N/A address IPv6Address N/A N/A self interface interface N/A _fromListeningDescriptor N/A N/A cls reactor fd addressFamily factory N/A N/A N/A 
        Create a new L{Port} based on an existing listening I{SOCK_STREAM}
        socket.

        Arguments are the same as to L{Port.__init__}, except where noted.

        @param fd: An integer file descriptor associated with a listening
            socket.  The socket must be in non-blocking mode.  Any additional
            attributes desired, such as I{FD_CLOEXEC}, must also be set already.

        @param addressFamily: The address family (sometimes called I{domain}) of
            the existing socket.  For example, L{socket.AF_INET}.

        @return: A new instance of C{cls} wrapping the socket given by C{fd}.
         N/A port N/A N/A socket fromfd fd addressFamily N/A cls socketType N/A interface N/A N/A N/A port getsockname N/A 0 N/A self N/A cls None factory None interface reactor N/A N/A self _preexistingSocket port N/A self N/A classmethod __repr__ N/A N/A self N/A N/A N/A N/A N/A self _realPortNumber None N/A N/A N/A <%s of %s on %s> N/A N/A self __class__ N/A N/A self factory __class__ N/A self _realPortNumber N/A N/A N/A <%s of %s (not listening)> N/A N/A self __class__ N/A N/A self factory __class__ N/A createInternetSocket N/A N/A self N/A N/A N/A s N/A N/A N/A base BasePort createInternetSocket self N/A N/A N/A platformType posix N/A N/A sys platform cygwin N/A N/A N/A N/A s setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A s N/A startListening N/A N/A self N/A N/A N/A Create and bind my socket, and begin listening on it.

        This is called on unserialization, and must be called after creating a
        server to begin listening on the specified port.
         N/A N/A N/A self _preexistingSocket None N/A N/A N/A N/A skt N/A N/A self createInternetSocket N/A N/A N/A self addressFamily N/A socket AF_INET6 N/A N/A addr N/A _resolveIPv6 N/A self interface N/A self port N/A N/A addr N/A N/A self interface N/A self port N/A N/A N/A skt bind addr N/A N/A N/A N/A socket error N/A le N/A N/A CannotListenError N/A N/A self interface N/A self port le N/A N/A N/A skt listen N/A self backlog N/A N/A skt N/A self _preexistingSocket N/A N/A self _preexistingSocket None N/A N/A self _socketShutdownMethod None N/A N/A self _realPortNumber N/A N/A N/A skt getsockname N/A 1 N/A N/A N/A log msg N/A %s starting on %s N/A N/A N/A self _getLogPrefix N/A self factory N/A self _realPortNumber N/A N/A N/A N/A self factory doStart N/A N/A self connected True N/A N/A self socket skt N/A N/A self fileno N/A N/A self socket fileno N/A N/A self numberAccepts 100 N/A N/A N/A self startReading N/A _buildAddr N/A N/A self address N/A N/A N/A N/A host port N/A address N/A 2 N/A N/A N/A self _addressType TCP host port N/A doRead N/A N/A self N/A N/A N/A Called when my socket is ready for reading.

        This accepts a connection and calls self.protocol() to handle the
        wire-level protocol.
         N/A N/A N/A N/A platformType posix N/A N/A numAccepts N/A self numberAccepts N/A N/A numAccepts 1 N/A i N/A range numAccepts N/A N/A N/A self disconnecting N/A N/A N/A N/A N/A N/A skt addr N/A N/A N/A self socket accept N/A N/A N/A N/A socket error N/A e N/A N/A N/A N/A N/A e args N/A 0 N/A EWOULDBLOCK EAGAIN N/A N/A N/A self numberAccepts i N/A N/A N/A N/A N/A N/A e args N/A 0 EPERM N/A N/A N/A N/A N/A N/A N/A e args N/A 0 N/A EMFILE ENOBUFS ENFILE ENOMEM ECONNABORTED N/A N/A N/A N/A log msg N/A Could not accept new connection (%s) N/A N/A errorcode N/A N/A N/A e args N/A 0 N/A N/A N/A N/A N/A fdesc _setCloseOnExec N/A N/A skt fileno N/A protocol N/A N/A N/A self factory buildProtocol N/A N/A self _buildAddr addr N/A N/A protocol None N/A N/A N/A N/A skt close N/A N/A s N/A self sessionno N/A N/A self sessionno N/A s 1 N/A transport N/A N/A self transport skt protocol addr self s N/A self reactor N/A N/A N/A protocol makeConnection transport N/A N/A N/A self numberAccepts N/A N/A self numberAccepts 20 N/A N/A N/A N/A N/A N/A log deferr N/A loseConnection N/A N/A self connDone N/A N/A N/A failure Failure N/A main CONNECTION_DONE N/A N/A 
        Stop accepting connections on this port.

        This will shut down the socket and call self.connectionLost().  It
        returns a deferred which will fire successfully when the port is
        actually closed, or with a failure if an error occurs shutting down.
         N/A N/A self disconnecting True N/A N/A N/A self stopReading N/A N/A self connected N/A N/A N/A self deferred N/A deferLater N/A self reactor 0 N/A self connectionLost connDone N/A N/A self deferred N/A N/A stopListening loseConnection _logConnectionLostMsg N/A N/A self N/A N/A N/A 
        Log message for closing port
         N/A N/A N/A log msg N/A (%s Port %s Closed) N/A N/A self _type N/A self _realPortNumber N/A connectionLost N/A N/A self reason N/A N/A N/A 
        Cleans up the socket.
         N/A N/A N/A self _logConnectionLostMsg N/A N/A self _realPortNumber None N/A N/A N/A N/A base BasePort connectionLost self reason N/A N/A self connected False N/A N/A N/A self _closeSocket True N/A N/A self socket N/A N/A self fileno N/A N/A N/A N/A N/A N/A self factory doStop N/A N/A N/A self disconnecting False N/A logPrefix N/A N/A self N/A N/A N/A Returns the name of my class, to prefix log entries with.
         N/A N/A N/A reflect qual N/A N/A self factory __class__ N/A getHost N/A N/A self N/A N/A N/A 
        Return an L{IPv4Address} or L{IPv6Address} indicating the listening
        address of this port.
         N/A N/A host port N/A N/A N/A N/A self socket getsockname N/A 2 N/A N/A N/A self _addressType TCP host port N/A N/A Connector N/A N/A base BaseConnector N/A N/A 
    A L{Connector} provides of L{twisted.internet.interfaces.IConnector} for
    all POSIX-style reactors.

    @ivar _addressType: the type returned by L{Connector.getDestination}.
        Either L{IPv4Address} or L{IPv6Address}, depending on the type of
        address.
    @type _addressType: C{type}
     N/A _addressType N/A address IPv4Address __init__ N/A N/A self host port factory timeout bindAddress reactor N/A None N/A N/A N/A isinstance port N/A types StringTypes N/A N/A N/A N/A port N/A N/A socket getservbyname port tcp N/A N/A N/A N/A socket error N/A e N/A N/A N/A N/A error ServiceNameUnknownError string N/A %s (%r) N/A e port N/A N/A N/A self host N/A self port N/A host port N/A N/A N/A abstract isIPv6Address host N/A N/A N/A self _addressType N/A address IPv6Address N/A N/A self bindAddress bindAddress N/A N/A N/A N/A base BaseConnector __init__ self factory timeout reactor N/A _makeTransport N/A N/A self N/A N/A N/A 
        Create a L{Client} bound to this L{Connector}.

        @return: a new L{Client}
        @rtype: L{Client}
         N/A N/A Client N/A self host N/A self port N/A self bindAddress self N/A self reactor N/A getDestination N/A N/A self N/A N/A N/A 
        @see: L{twisted.internet.interfaces.IConnector.getDestination}.
         N/A N/A N/A self _addressType TCP N/A self host N/A self port N/A N/A