/usr/lib/python3/dist-packages/twisted/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/__pycache__/plugin.cpython-310.pyc (7071B)
o
b! @ s< d Z ddlZddlZddlZddlZddlmZmZmZm Z ddl
mZmZ ddl
mZ ddlmZ ddlmZ ddlmZ G d d
d
eZG dd dZG d
d dZdd ZzejZW n eyk d ddZY nw dd ZdejfddZe dedZ d dee deej dee fddZ e Z!dd Z"ddgZ#dS )!zL
Plugin system for Twisted.
@author: Jp Calderone
@author: Glyph Lefkowitz
N)IterableOptionalTypeTypeVar) Interface
providedBy)log)getAdapterFactory) getModule)namedAnyc @ s e Zd ZdZdS )IPluginz
Interface that must be implemented by all plugins.
Only objects which implement this interface will be considered for return
by C{getPlugins}. To be useful, plugins should also implement some other
application-specific interface.
N)__name__
__module____qualname____doc__ r r 0/usr/lib/python3/dist-packages/twisted/plugin.pyr s r c @ s8 e Zd Zdd ZdefddZdd Zdd d
ZeZdS )CachedPluginc C s* || _ || _|| _|| _| j j| d S N)dropinnamedescriptionprovidedpluginsappend)selfr r r r r r r __init__' s
zCachedPlugin.__init__returnc C s&