ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/git/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/git/__pycache__/compat.cpython-311.pyc

�

�܋f�����UdZddlZddlZddlZddlmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZejdkZeed<ejdkZejdkZej��Zedd���Zed	e	d
efd���Zd	ee	dfd
eefd
�Zedd���Zed	e	d
efd���Zd	ee	d
eefd�Zedd���Zed	e	d
efd���Zd	ee	d
eefd�ZdS)z5utilities to help provide compatibility with python 3�N)�force_bytes�
force_text)	�Any�AnyStr�Dict�IO�Optional�Tuple�Type�Union�overload�nt�is_win�posix�darwin�s�returnc��dS�N��rs �[/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/compat.py�safe_decoder*����C�c��dSrrrs rrr/rrc��t|t��r|St|t��r|�td��S|�dStd|�����)z)Safely decodes a binary string to unicode�surrogateescapeN� Expected bytes or text, but got )�
isinstance�str�bytes�decode�defenc�	TypeErrorrs rrr4sa���!�S���E���	�A�u�	�	�E��x�x�� 1�2�2�2�	
���t��i���C�D�D�Drc��dSrrrs r�safe_encoder'@rrc��dSrrrs rr'r'Errc��t|t��r|�t��St|t��r|S|�dStd|�����)z)Safely encodes a binary string to unicodeNr)r r!�encoder$r"r%rs rr'r'Js^���!�S���E��x�x�����	�A�u�	�	�E���	
���t��i���C�D�D�Drc��dSrrrs r�
win_encoder,Vrrc��dSrrrs rr,r,[rrc���t|t��r'|�tjd����St|t
��r|S|�t
d|�����dS)z1Encode unicodes for process arguments on Windows.FNr)r r!r*�locale�getpreferredencodingr"r%rs rr,r,`si���!�S���E��x�x��3�E�:�:�;�;�;�	�A�u�	�	�E���	
���i���C�D�D�D��4r)rNrN)�__doc__r/�os�sys�gitdb.utils.encodingrr�typingrrrrr	r
rrr
�namer�bool�__annotations__�is_posix�	is_darwin�getfilesystemencodingr$rr!r'r"r,rrr�<module>r<s���<�;�;��
�
�
�	�	�	�	�
�
�
�
���������
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
��w�$�������
�7�g����G�x��	�	"��	"�	$�	$��
����
���
��6��c����
���	E�5����&�	E�8�C�=�	E�	E�	E�	E�
����
���
��6��e����
���	E�8�F�#�	E����	E�	E�	E�	E�
����
���
��&��U����
����(�6�"��x��������r

Zerion Mini Shell 1.0