Qf*ddlZdZdZdZdZdZy)Nc*tt|S)N) match_dirstranslate_corepatterns 9/opt/alt/python312/lib64/python3.12/zipfile/_path/glob.py translater s nW- ..c |dS)zx Ensure that zipfile.Path directory names are matched. zipfile.Path directory names always end in a slash. z[/]?rs rrrs it r cRdjttt|S)z Given a glob pattern, produce a regex that matches it. >>> translate('*.txt') '[^/]*\\.txt' >>> translate('a?txt') 'a.txt' >>> translate('**/*') '.*/[^/]*' )joinmapreplaceseparaters rrrs 773w 12 33r 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[\[].*?[\]])|([\[][^\]]*$))refinditerrs rrrs ;;Ew OOr c|jdxsTtj|jdjddjddjddS) zE Perform the replacements for a match from :func:`separate`. setrz\*\*z.*z\*z[^/]*z\?.)grouprescaper)matchs rrr+sR ;;u   %++a.! 5 !  !   r )rr rrrrr r rrs" / 4 P r