File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/fnmatch.cpython-311.opt-2.pyc
�
    !A?ho  �                   �~   � 	 d dl Z d dlZd dlZd dlZg d�Zd� Z ej        dd��  �        d� �   �         Zd� Zd	� Z	d
� Z
dS )�    N)�filter�fnmatch�fnmatchcase�	translatec                 �   � 	 t           j        �                    | �  �        } t           j        �                    |�  �        }t          | |�  �        S �N)�os�path�normcaser   )�name�pats     �./opt/alt/python311/lib64/python3.11/fnmatch.pyr   r      sC   � �
� �7���D�!�!�D�
�'�
�
�3�
�
�C��t�S�!�!�!�    i �  T)�maxsize�typedc                 ��   � t          | t          �  �        r0t          | d�  �        }t          |�  �        }t          |d�  �        }nt          | �  �        }t	          j        |�  �        j        S )Nz
ISO-8859-1)�
isinstance�bytes�strr   �re�compile�match)r
   �pat_str�res_str�ress       r   �_compile_patternr   &