https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/mercurial/pure/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/mercurial/pure/__pycache__/charencode.cpython-310.pyc
o

�]LbM	�@s
ddlmZddlZddlmZdd�Zdd�Zd	d
�ZgZe�	dd�e
d
�D��e�	dd�e
d
d�D��e�d�ded<ded<ded<ded<ded<ded<ded<edd�Zded <d!ed"<e�	d#d�e
d$d%�D��d&d'�Z
ejr}d(Znd)Zd*d+�ZdS),�)�absolute_importN�)�pycompatcCs&z|�d�WdStyYdSw)N�asciiTF)�decode�UnicodeDecodeError��s�r
�;/usr/lib/python3/dist-packages/mercurial/pure/charencode.py�
isasciistrs
�rcC�|�d�|��S)zhconvert a string to lowercase if ASCII

    Raises UnicodeDecodeError if non-ASCII characters are found.r)r�lowerrr
r
r�
asciilower�
rcCr
)zhconvert a string to uppercase if ASCII

    Raises UnicodeDecodeError if non-ASCII characters are found.r)r�upperrr
r
r�
asciiupperrrccs�|]}d|VqdS)�\u%04xNr
��.0�xr
r
r�	<genexpr>(��r� cc��|]}t�|�VqdS�N�r�bytechrrr
r
rr)���s\u007fs\t�	s\n�
s\"�"s\\�\s\b�s\f�s\r�
s\u003c�<s\u003e�>ccrrrrr
r
rr5r��cs@|rt�nt�zd��fdd�t|�D��WStyt�w)z�Convert a UTF-8 byte string to JSON-escaped form (fast path)

    Raises ValueError if non-ASCII characters have to be escaped.
    �c3s�|]}�|VqdSrr
r��jmr
rrBrz#jsonescapeu8fast.<locals>.<genexpr>)�_paranoidjsonmap�_jsonmap�join�	bytearray�
IndexError�
ValueError)�u8chars�paranoidr
r,r�jsonescapeu8fast8s�r6�
surrogatepass�strictcsP|rt�nt�|�dt��dt�}t�d|�}|�d�d��fdd�|D��S)z�Convert a UTF-8 byte string to JSON-escaped form (slow path)

    Escapes all non-ASCII characters no matter if paranoid is False.
    zutf-8zutf-16�Hrr+c3s(�|]}|dkr�|nd|VqdS)r)rNr
rr,r
rrZs�&z'jsonescapeu8fallback.<locals>.<genexpr>)r.r/r�_utf8strict�encode�array�popr0)r4r5�u16b�u16codesr
r,r�jsonescapeu8fallbackMs
r@)�
__future__rr<�rrrrr/�extend�range�appendr.r6�ispy3r:r@r
r
r
r�<module>s4


https://t.me/RX1948 - 2025