
    d}                          d dl Z d Zd Zd ZdS )    Nc                 l    d                     t          t          t          |                               S )z
    Given a glob pattern, produce a regex that matches it.

    >>> translate('*.txt')
    '[^/]*\\.txt'
    >>> translate('a?txt')
    'a.txt'
    >>> translate('**/*')
    '.*/[^/]*'
     )joinmapreplaceseparatepatterns    M/home/feoh/.local/pipx/venvs/poetry/lib/python3.11/site-packages/zipp/glob.py	translater      s(     773w 1 122333    c                 ,    t          j        d|           S )z
    Separate out character sets to avoid translating their contents.

    >>> [m.group(0) for m in separate('*.txt')]
    ['*.txt']
    >>> [m.group(0) for m in separate('a[?]txt')]
    ['a', '[?]', 'txt']
    z+([^\[]+)|(?P<set>[\[].*?[\]])|([\[][^\]]*$))refinditerr	   s    r   r   r      s     ;EwOOOr   c                     |                      d          pbt          j        |                      d                                        dd                              dd                              dd          S )	zE
    Perform the replacements for a match from :func:`separate`.
    setr   z\*\*z.*z\*z[^/]*z\?.)groupr   escaper   )matchs    r   r   r      sa    
 ;;u 
	%++a..!!	5	!	!		!	!				r   )r   r   r   r    r   r   <module>r      sH    				4 4 4	P 	P 	P
 
 
 
 
r   