HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/5057/usr/lib/python3.12/zipfile/_path/__pycache__/glob.cpython-312.pyc
�

)!�h}���ddlZd�Zd�Zd�Zy)�Nc�R�djttt|���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 �x/build/snapcraft-certbot-c9aaebe726f8beb59a0eb2d8e1671bc4/parts/certbot/install/usr/lib/python3.12/zipfile/_path/glob.py�	translaters���7�7�3�w��� 1�2�3�3�c�.�tjd|�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 rrrs���;�;�E�w�O�Or
c���|jd�xsTtj|jd��jdd�jdd�jdd�S)	zE
    Perform the replacements for a match from :func:`separate`.
    �setrz\*\*z.*z\*z[^/]*z\?�.)�groupr�escaper)�matchs rrrsR��
�;�;�u���
�	�	�%�+�+�a�.�!�	���5�	!�	����	!�	����	�	r
)rrrr�r
r�<module>rs��	�4�	P�
r