403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.222.24.23
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python38/lib/python3.8/site-packages/click/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python38/lib/python3.8/site-packages/click/__pycache__/exceptions.cpython-38.pyc
U

��W��@s�ddlmZmZmZddlmZGdd�de�ZGdd�de�ZGdd�de�Z	Gd	d
�d
e	�Z
Gdd�de�ZGd
d�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZdS)�)�PY2�filename_to_ui�get_text_stderr)�echoc@s.eZdZdZdZdd�Zdd�Zd
dd	�ZdS)�ClickExceptionz8An exception that Click can handle and show to the user.rcCs,tr|dk	r|�d�}t�||�||_dS)Nzutf-8)r�encode�	Exception�__init__�message)�selfr
�r�A/opt/alt/python38/lib/python3.8/site-packages/click/exceptions.pyr	s

zClickException.__init__cCs|jS�N)r
�rrrr
�format_messageszClickException.format_messageNcCs&|dkrt�}td|��|d�dS)N�	Error: %s)�file)rrr)rrrrr
�showszClickException.show)N)�__name__�
__module__�__qualname__�__doc__�	exit_coder	rrrrrr
rs
rc@s(eZdZdZdZddd�Zd	dd�ZdS)
�
UsageErrora+An internal exception that signals a usage error.  This typically
    aborts any further handling.

    :param message: the error message to display.
    :param ctx: optionally the context that caused this error.  Click will
                fill in the context automatically in some situations.
    �NcCst�||�||_dSr)rr	�ctx�rr
rrrr
r	%szUsageError.__init__cCsV|dkrt�}d}|jdk	r<|jj}t|j��d||d�td|��||d�dS)N�
)r�colorr)rrrrZ	get_usager)rrrrrr
r)s
zUsageError.show)N)N)rrrrrr	rrrrr
rs
rc@s"eZdZdZddd�Zdd�ZdS)�BadParametera
An exception that formats out a standardized error message for a
    bad parameter.  This is useful when thrown from a callback or type as
    Click will attach contextual information to it (for instance, which
    parameter it is).

    .. versionadded:: 2.0

    :param param: the parameter object that caused this error.  This can
                  be left out, and Click will attach this info itself
                  if possible.
    :param param_hint: a string that shows up as parameter name.  This
                       can be used as alternative to `param` in cases
                       where custom validation should happen.  If it is
                       a string it's used as such, if it's a list then
                       each item is quoted and separated.
    NcCst�|||�||_||_dSr)rr	�param�
param_hint)rr
rr r!rrr
r	EszBadParameter.__init__cCsj|jdk	r|j}n(|jdk	r0|jjp,|jjg}n
d|jSt|ttf�r\d�dd�|D��}d||jfS)NzInvalid value: %s� / css|]}d|VqdS�z"%s"Nr��.0�xrrr
�	<genexpr>Ssz.BadParameter.format_message.<locals>.<genexpr>zInvalid value for %s: %s)	r!r �opts�human_readable_namer
�
isinstance�tuple�list�join)rr!rrr
rKs


zBadParameter.format_message)NNN�rrrrr	rrrrr
r3s
�
rc@s"eZdZdZddd�Zdd�ZdS)�MissingParametera�Raised if click required an option or argument but it was not
    provided when invoking the script.

    .. versionadded:: 4.0

    :param param_type: a string that indicates the type of the parameter.
                       The default is to inherit the parameter type from
                       the given `param`.  Valid values are ``'parameter'``,
                       ``'option'`` or ``'argument'``.
    NcCst�|||||�||_dSr)rr	�
param_type)rr
rr r!r0rrr
r	cszMissingParameter.__init__cCs�|jdk	r|j}n"|jdk	r0|jjp,|jjg}nd}t|ttf�rVd�dd�|D��}|j}|dkrv|jdk	rv|jj	}|j
}|jdk	r�|jj�|j�}|r�|r�|d|7}n|}d||r�d|p�d|r�dp�d|p�dfS)	Nr"css|]}d|VqdSr#rr$rrr
r'psz2MissingParameter.format_message.<locals>.<genexpr>z.  zMissing %s%s%s%sz %s��.)
r!r r(r)r*r+r,r-r0Zparam_type_namer
�typeZget_missing_message)rr!r0�msgZ	msg_extrarrr
rhs.



�zMissingParameter.format_message)NNNNNr.rrrr
r/Ws�
r/c@s"eZdZdZddd�Zdd�ZdS)�NoSuchOptionzfRaised if click attempted to handle an option that does not
    exist.

    .. versionadded:: 4.0
    NcCs.|dkrd|}t�|||�||_||_dS)Nzno such option: %s)rr	�option_name�
possibilities)rr6r
r7rrrr
r	�s
zNoSuchOption.__init__cCsZ|jg}|jrPt|j�dkr2|�d|jd�nt|j�}|�dd�|��d�|�S)NrzDid you mean %s?�z(Possible options: %s)z, z  )r
r7�len�append�sortedr-)r�bitsr7rrr
r�s
zNoSuchOption.format_message)NNNr.rrrr
r5�s
�
r5c@seZdZdZddd�ZdS)�BadOptionUsagez�Raised if an option is generally supplied but the use of the option
    was incorrect.  This is for instance raised if the number of arguments
    for an option is not correct.

    .. versionadded:: 4.0
    NcCst�|||�dSr�rr	rrrr
r	�szBadOptionUsage.__init__)N�rrrrr	rrrr
r=�sr=c@seZdZdZddd�ZdS)�BadArgumentUsagez�Raised if an argument is generally supplied but the use of the argument
    was incorrect.  This is for instance raised if the number of values
    for an argument is not correct.

    .. versionadded:: 6.0
    NcCst�|||�dSrr>rrrr
r	�szBadArgumentUsage.__init__)Nr?rrrr
r@�sr@c@s"eZdZdZddd�Zdd�ZdS)�	FileErrorz"Raised if a file cannot be opened.NcCs0t|�}|dkrd}t�||�||_||_dS)Nz
unknown error)rrr	�ui_filename�filename)rrCZhintrBrrr
r	�szFileError.__init__cCsd|j|jfS)NzCould not open file %s: %s)rBr
rrrr
r�szFileError.format_message)Nr.rrrr
rA�s
rAc@seZdZdZdS)�Abortz=An internal signalling exception that signals Click to abort.N)rrrrrrrr
rD�srDN)�_compatrrr�utilsrrrrrr/r5r=r@rA�RuntimeErrorrDrrrr
�<module>s$0

Youez - 2016 - github.com/yon3zu
LinuXploit