File: //kunden/lib/python3/dist-packages/setuptools/__pycache__/unicode_utils.cpython-39.pyc
a
��`� � @ 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�unicodedataZ normalize�decode�encode�UnicodeError)�path� r
�:/usr/lib/python3/dist-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&