File: //opt/osm/venv/lib64/python3.10/site-packages/setuptools/__pycache__/unicode_utils.cpython-310.pyc
o
0i� � @ s, d dl Z d dlZdd� Zdd� Zdd� ZdS )� Nc C sR t | t�rt�d| �S z| �d�} t�d| �} | �d�} W | S ty( Y | S w )NZNFD�utf-8)�
isinstance�str�unicodedata� normalize�decode�encode�UnicodeError)�path� r �F/opt/osm/venv/lib/python3.10/site-packages/setuptools/unicode_utils.py� decompose s
��r
c C sR t | t�r| S t�� pd}|df}|D ]}z| �|�W S ty& Y qw dS )zY
Ensure that the given path is decoded,
NONE when no expected encoding works
r N)r r �sys�getfilesystemencodingr �UnicodeDecodeError)r
Zfs_enc�
candidates�encr r r �filesys_decode s
��r c C s"