✏️ 编辑:unicode_utils.cpython-39.pyc
路径:
/usr/lib/python3.9/site-packages/setuptools/__pycache__/unicode_utils.cpython-39.pyc
大小:1.05 KB · 修改:2025-09-21 11:46:17 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a ���h� � @ s, d dl Z d dlZdd� Zdd� Zdd� ZdS )� Nc C sR t | t�rt�d| �S z$| �d�} t�d| �} | �d�} W n tyL Y n0 | S )NZNFD�utf-8)� isinstance�str�unicodedata� normalize�decode�encode�UnicodeError)�path� r �</usr/lib/python3.9/site-packages/setuptools/unicode_utils.py� decompose s r c C sX t | t�r| S t�� pd}|df}|D ],}z| �|�W S tyP Y q&Y q&0 q&dS )zY Ensure that the given path is decoded, NONE when no expected encoding works r N)r r �sys�getfilesystemencodingr �UnicodeDecodeError)r Zfs_encZ candidates�encr r r �filesys_decode s r c C s&