Files
cms-website/.deps_siteforge_v812/click/__pycache__/exceptions.cpython-312.pyc
T

135 lines
14 KiB
Plaintext
Raw Normal View History

Ë
îÅÙj€%ãóè—ddlZddlmZddlmZddlmZddlmZddl m
Z
ddl m Z ejrdd l
mZdd
l
mZdd l
mZd ej"ej$ej&eefd
ej"efd„ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„d e«Z Gd!„d"e«Z!y)#éN)Úgettext)Úngettexté)Úget_text_stderr)Úresolve_color_default)Úecho)Úformat_filename)ÚCommand)ÚContext)Ú ParameterÚ
param_hintÚreturncóZ—|�(t|t«sdjd„|D««S|S)Nz / c3ó2K—|]}t|«–—Œy­w©N)Úrepr)Ú.0Úxs úTC:\Users\30997\AppData\Local\Temp\pip-target-6g32zz5s\lib\python\click/exceptions.pyÚ <genexpr>z$_join_param_hints.<locals>.<genexpr>sèø€Ð6©: aœ$˜qŸ'©:ùs‚)Ú
isinstanceÚstrÚjoin)r
s rÚ_join_param_hintsrs.€ðФj°¼SÔ&AØ�z‰zÑ6©:Ó6Ó6Ð6à Ðóc󢇗eZdZdZdZdeddfˆfd„ Zdefd„Zdefd„Zd d e je je jddfd
„Z
ˆxZS) ÚClickExceptionz8An exception that Click can handle and show to the user.rÚmessagerNcóP•—t‰|�|«t«|_||_yr)ÚsuperÚ__init__rÚ
show_colorr)ÚselfrÚ __class__s €rr!zClickException.__init__s$ø€Ü
‰Ñ˜Ô!ô-BÓ,CˆŒØˆ� rcó—|jSr©r©r#s rÚformat_messagezClickException.format_message&ó €Ø�|‰|Ðrcó—|jSrr&r's rÚ__str__zClickException.__str__)r)rÚfilecóš—|€
t«}ttd«j|j «¬«||j
¬«y)NúError: {message}r&©r,Úcolor)rrÚ_Úformatr(r")r#r,s rÚshowzClickException.show,sA€Ø ˆ<Ü"Ó$ˆDä Ü
Ð Ó !× (Ñ (°×1DÑ1DÓ1FÐ (Ó GØØ—/‘/ö
rr)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú exit_coderr!r(r+ÚtÚOptionalÚIOÚAnyr3Ú
__classcell__©r$s@rrrs`ø„ÙBð€Ið ð¨õð óð˜óñ
˜Ÿ™ A§D¡D¨¯©¡KÑ0ð
¸D÷
rrc󪇗eZdZdZdZd dedejdddfˆfd„
Zd d ejejejddfd
„Z ˆxZ S) Ú
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.
éNrÚctxr rcó�•—t‰|�|«||_|jr|jj|_yd|_yr)r r!rBÚcommandÚcmd)r#rrBr$s €rr!zUsageError.__init__Bs4ø€Ü
‰Ñ˜Ô!؈ŒØ<@¿HºH¨¯©×(8Ñ(8ˆ�È$ˆ�rr,có6—|€
t«}d}d}|j�{|jjj|j«�Lt d«j |jj |jjd¬«}|›d�}|j�A|jj}t|jj«›d|›�||¬«tt d«j |j«¬«||¬«y) NÚz"Try '{command} {option}' for help.r)rDÚoptionÚ
r/r.r&) rrBrDÚget_help_optionr1r2Ú command_pathÚhelp_option_namesr0rÚ get_usager()r#r,r0Úhints rr3zUsageError.showGsô€Ø ˆ<Ü"Ó$ˆD؈؈à �H‰HÐ Ø—‘× Ñ ×0Ñ0°·±Ó:ÐFäÐ9Ó:×AÑAØŸ™×-Ñ-°d·h±h×6PÑ6PÐQRÑ6SðBóˆDð�V˜2�;ˆDØ �8‰8Ð Ø—H‘H—N‘NˆEÜ �D—H‘H×&Ñ&Ó(Ð)¨¨D¨6Ð2¸ÀUÕ KÜ Ü
Ð Ó !× (Ñ (°×1DÑ1DÓ1FÐ (Ó GØØö
rr)
r4r5r6r7r8rr9r:r!r;r<r3r=r>s@rr@r@7s^ø„ñð€IñO ðO¨!¯*©*°YÑ*?ðOÈ4õOñ

˜Ÿ™ A§D¡D¨¯©¡KÑ0ð
¸D÷
rr@c 󚇗eZdZdZ d dedej ddej ddej ed df
ˆfd
„
Zd efd „ZˆxZ S)
Ú 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.
NrrBr Úparamr r
rcóB•—t‰|�||«||_||_yr)r r!rQr
)r#rrBrQr
r$s €rr!zBadParameter.__init__ps"ø€ô ‰Ñ˜ #Ô&؈Œ
Ø$ˆ�rcó@—|j�
|j}nW|j�&|jj|j«}n%t d«j |j ¬«St d«j t|«|j ¬«S)NzInvalid value: {message}r&z)Invalid value for {param_hint}: {message})r
r)r
rQÚget_error_hintrBr1r2rr)r#r
s rr(zBadParameter.format_message{s‚€Ø �?‰?Ð &ØŸ™‰JØ
�Z‰ZÐ
#ØŸ™×2Ñ2°4·8±8Ó<‰JäÐ/Ó0×7Ñ7ÀÇ Á Ð7ÓMÐ MäÐ<Ó=×DÑDÜ(¨Ó4¸d¿l¹lðEó
ð
r©NNN©
r4r5r6r7rr9r:r!r(r=r>s@rrPrP^snø„ñð(&*Ø)-Ø&*ñ %àð %ð�Z‰Z˜ Ñ
"ð %ð�z‰z˜+Ñ&ð %ð
—J‘J˜s‘Oð %ð
õ
%ð

 ÷

rrPc
ó⇗eZdZdZ ddej
edej
ddej
ddej
ed ej
ed
df ˆfd „
Zd
efd „Zd
efd
„Z ˆxZ
S)Ú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'``.
NrrBr rQr r
Ú
param_typercó@•—t‰|�|xsd|||«||_y)NrG)r r!rY)r#rrBrQr
rYr$s €rr!zMissingParameter.__init__”s#ø€ô ‰Ñ˜š B¨¨U°JÔ?Ø$ˆ�rcó�—|j�
|j}n4|j�&|jj|j«}nd}t |«}|rd|›�nd}|j
}|€"|j�|jj }|j}|j�>|jjj|j«}|r
|r |d|›�z
}n|}|rd|›�nd}|dk(r td«}n=|dk(r td«}n,|dk(r td «}ntd
«j|¬ «}|›|›d |›�S)
NÚ rGz. ÚargumentzMissing argumentrHzMissing optionÚ parameterzMissing parameterzMissing {param_type})rYÚ.) r
rQrTrBrrYÚparam_type_namerÚtypeÚget_missing_messager1r2)r#r
rYÚmsgÚ msg_extraÚmissings rr(zMissingParameter.format_messageŸs@€Ø �?‰?Ð &Ø*.¯/©/‰JØ
�Z‰ZÐ
#ØŸ™×2Ñ2°4·8±8Ó<‰JàˆJä& zÓ2ˆ
Ù)3�q˜˜ Ñ%¸ˆ
à—_‘_ˆ
Ø Ð  $§*¡*Ð"8ØŸ™×3Ñ3ˆJà�l‰lˆØ �:‰:Ð !ØŸ
™
Ÿ™×;Ñ;¸D¿J¹JÓGˆIÙÙØ˜R  ˜{Ð+Ñ+‘Cà#�Cá��#�‰i Bˆð ˜Ò #ÜÐ*Ó+‰GØ
˜8Ò
#ÜÐ(Ó)‰GØ
˜;Ò
&ÜÐ+Ó,‰GäÐ.Ó/×6Ñ6À*Ð6ÓMˆGà�˜:˜, a¨ uÐ-Ð-rcó°—|js?|jr|jjnd}td«j |¬«S|jS)NzMissing parameter: {param_name})Ú
param_name)rrQÚnamer1r2)r#rgs rr+zMissingParameter.__str__ÅsB€Ø�|Š|Ø,0¯JªJ˜Ÿ™Ÿš¸DˆJÜÐ6Ó7×>Ñ>È*Ð>ÓUÐ Uà—<‘<Ð r)NNNNN) r4r5r6r7r9r:rr!r(r+r=r>s@rrXrXˆs›ø„ñ ð$(Ø%)Ø)-Ø&*Ø&*ñ
%à—‘˜C‘ð %ð�Z‰Z˜ Ñ
"ð %ð�z‰z˜+Ñ&ð %ð
—J‘J˜s‘Oð %ð —J‘J˜s‘Oð
%ð
õ %ð$. ó$.ðL ˜÷ rrXc ó´‡—eZdZdZ d dedej edej ejedej dddf
ˆfd „