|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/lib/python3.6/site-packages/setuptools/__pycache__/ |
Upload File : |
3
�K]� � @ s8 d dl Z d dlZd dlmZ dd� Zdd� Zdd� ZdS ) � N)�sixc C sV t | tj�rtjd| �S y$| jd�} tjd| �} | jd�} W n tk
rP Y nX | S )NZNFDzutf-8)�
isinstancer � text_type�unicodedataZ normalize�decode�encode�UnicodeError)�path� r
�#/usr/lib/python3.6/unicode_utils.py� decompose s
r c C sX t | tj�r| S tj� pd}|df}x.|D ]&}y
| j|�S tk
rN w*Y q*X q*W dS )zY
Ensure that the given path is decoded,
NONE when no expected encoding works
zutf-8N)r r r �sys�getfilesystemencodingr �UnicodeDecodeError)r Zfs_encZ
candidates�encr
r
r �filesys_decode s
r c C s$ y
| j |�S tk
r dS X dS )z/turn unicode encoding into a functional routineN)r �UnicodeEncodeError)�stringr r
r
r �
try_encode'