python (3.12.0)
͑e} 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('**/*')
'.*/[^/]*'
)joinmapreplaceseparatepatterns F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/zipfile/_path/glob.py translater s 773w 1233 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>[\[].*?[\]])|([\[][^\]]*$))refinditerr s r r r s ;;EwOOr
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