| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.12/zipfile/_path/__pycache__/ |
Upload File : |
�
:5j} � � � d dl Z d� Zd� Zd� Zy)� Nc �R � dj 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 �)/usr/lib/python3.12/zipfile/_path/glob.py� translater s � � �7�7�3�w��� 1�2�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 � � �;�;�E�w�O�Or
c �� � | j d� xsT t j | j d� � j dd� j dd� j dd� S ) zE
Perform the replacements for a match from :func:`separate`.
�setr z\*\*z.*z\*z[^/]*z\?�.)�groupr �escaper )�matchs r r r sR � �
�;�;�u�� �
� � �%�+�+�a�.�!� ���5� !� ���� !� ���� � r
)r r r r � r
r �<module>r s �� �4� P�
r