관리-도구
편집 파일: glob.cpython-38.pyc
U )�e� � @ s$ d dl Z dd� Zdd� Zdd� ZdS )� Nc C s d� ttt| ���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��pattern� r �7/opt/hc_python/lib/python3.8/site-packages/zipp/glob.py� translate s r c C s t �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 r r r r s r c C s2 | � d�p0t�| � d���dd��dd��dd�S ) zE Perform the replacements for a match from :func:`separate`. �setr z\*\*z.*z\*z[^/]*z\?z[^/])�groupr �escaper )�matchr r r r s � � ��r )r r r r r r r r �<module> s