ruạṛ
a �u:ju � @ s� d dl Z d dlZd dlmZ ddlmZ ddlmZ dd� Zdd � Z d d� Z ejfeed�d d�Z ejfeedd�dd�ZG dd� de�ZdS )� N)�RawConfigParser� )�py39)�SetuptoolsDeprecationWarningc 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 �K/opt/bart/bart_venv/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 )z] 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&