Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
fnmatch.cpython-314.pyc91 linesDownload Raw Back to __pycache__
1+
2��i����Rt^RIt^RIt^RIt^RIt^RIt.ROtRt]P!RRR7R4t	Rt3RtR	tR4t
]P!R4Pt]P!RR
7!]P"4tRtRtR#)a�Filename matching with shell patterns.5 6fnmatch(FILENAME, PATTERN) matches according to the local convention.7fnmatchcase(FILENAME, PATTERN) always takes case in account.8 9The functions operate by translating the pattern into a regular10expression.  They cache the compiled regular expressions for speed.11 12The function translate(PATTERN) returns a regular expression13corresponding to PATTERN.  (It does not compile it.)14Nc��\PPV4p\PPV4p\W4#)a�Test whether FILENAME matches PATTERN.15 16Patterns are Unix shell style:17 18*       matches everything19?       matches any single character20[seq]   matches any character in seq21[!seq]  matches any char not in seq22 23An initial period in FILENAME is not special.24Both FILENAME and PATTERN are first case-normalized25if the operating system requires it.26If you don't want this, use fnmatchcase(FILENAME, PATTERN).27)�os�path�normcase�fnmatchcase)�name�pats&&�Lib\fnmatch.py�fnmatchr28s7���7�7���D�!�D�29�'�'�30�31�3�32�C��t�!�!�i�T)�maxsize�typedc���\V\4'd%\VR4p\V4p\VR4pM\V4p\P33!V4P#)z34ISO-8859-1)�35isinstance�bytes�str�	translate�re�compile�match)r�pat_str�res_str�ress&   r	�_compile_patternr*sN���#�u����c�<�(���G�$���G�\�*����n��
�:�:�c�?� � � rc�t�.p\PPV4p\V4p\P\Jd-VF$pV!V4'gKVPV4K&	V#VFApV!\PPV44'gK0VPV4KC	V#)zJConstruct a list from those elements of the iterable NAMES that match PAT.)rrrr�	posixpath�append)�namesr�resultrrs&&   r	�filterr5s���
�F�36�'�'�37�38�3�39�C��S�!�E�	�w�w�)���D��T�{�{��
�
�d�#���M��D��R�W�W�%�%�d�+�,�,��
�
�d�#���Mrc�R�\PPV4p\V4p\P\Jd \\P!W 44#.pVF=pV!\PPV44eK,VPV4K?	V#)zQConstruct a list from those elements of the iterable NAMES that do not match PAT.)	rrrrr�list�	itertools�filterfalser)rrrrrs&&   r	r#r#Fs~��40�'�'�41�42�3�43�C��S�!�E�	�w�w�)���I�)�)�%�7�8�8�
�F�������!�!�$�'�(�0��M�M�$����Mrc�,�\V4pV!V4RJ#)z�Test whether FILENAME matches PATTERN, including case.44 45This is a version of fnmatch() which doesn't case-normalize46its arguments.47N)r)rrrs&& r	rrUs��
�S�!�E���;�d�"�"rc�6�\VRR4wr\W4#)z^Translate a shell PATTERN to a regular expression.48 49There is no way to quote meta-characters.50�*�.)�51_translate�_join_translated_parts)r�parts�star_indicess&  r	rr_s ��%�S�#�s�3��E�!�%�6�6rz([&~|])i)rc���.pVPp.p^\V4rvWg8Ed�W,pV^,pVR8XdEVP\V44V!V4Wg8dW,R8XdV^,
pKKaKcVR8XdV!V4KtVR8XEd4Tp	W�8dW	,R8Xd52V	^,p	W�8dW	,R8Xd53V	^,p	W�8dW	,R8wdV	^,p	KW�8�dV!R4K�WV	p54RV559dV56PRR	4p57EM-.pW,R8Xd58V^,MV^,pVPRW�4pV^8dM'VPWV4V^,pV^,pKBWV	p
V
'dVPV
4MVR;;,R,
uu&\	\V4^,59^R4F^pW�^,60,R,W�,^,8�gK-W�^,61,R62RW�,R,,W�^,63&W�K`	RPRV44p64V	^,pV65'gV!R
4EKLV66R8XdV!R4EK^\
RV674p68V69^,R8XdRV70R,,p71MV72^,R9d73RV74,p75V!RV76R24EK�V!\V44EK�Wg8XgQhW53#)�r&�?�[�!�]z\[�-�\�\\N:�NNc3�f"�TF'pVPRR4PRR4x�K)	R#5i)r3r4r2z\-N)�replace)�.0�ss& r	�	<genexpr>�_translate.<locals>.<genexpr>�s2���%6�.4��&'�Y�Y�t�U�%;�%C�%C�C��%O�%O�.4�s�/1z(?!)r'z\\\1�^�����)r<r/)r�lenr7�find�range�join�_re_setops_sub�77_re_escape)r�star�
question_markr�addr+�i�n�c�j�stuff�chunks�k�chunks&&&           r	r(r(ms��78�C�79
�*�*�C��L��c�#�h�q�80�%��F��
�a�C����8�����C��)���I��%�C�F�c�M��Q���*�%�
�#�X��
��
�#�X��A��u���3���a�C���u���3���a�C���%�C�F�c�M��a�C���v��E�81��a����e�#�!�M�M�$��6�E��F�"�v��}��!��!�A�#�A���H�H�S�!�/���q�5�!��
�
�c�A�h�/��a�C���a�C���!�H�E���
�
�e�,��r�82�c�)�83�"�3�v�;�q�=�!�R�8��!�A�#�;�r�?�V�Y�q�\�9�*0�1��+�c�r�*:�V�Y�r�]�*J�F�Q�3�K� &�	�9� �H�H�%6�.4�%6�6�E��a�C�����K��c�\���H�+�7�E�:�E��Q�x�3�� #�e�B�i����q��Z�/� $�u����!�E�7�!��%��84�1�
���6�M�6���rc�\�V'gRRPV4R2#\V4p\V4pVRVpVPVPreV^,pVF&pV!R4V!WV4V!R4V^,pK(	V!R4V!WR4RPV4pRVR2#)z(?s:�z)\zNz(?>.*?�)z.*)rA�iter�nextr�extend)	r*r+�iter_star_indicesrJ�bufferrrTrGrs	&&       r	r)r)�s�����r�w�w�u�~�&�c�*�*��\�*���
��A�
�2�A�Y�F��]�]�F�M�M�F�	�A��A�
��	�x���u�q�z���s��
��E����4�L�85�5��9��86�'�'�&�/�C��3�%�s��r)rr#r87rr)�__doc__�	functoolsr"rrr�__all__r88�	lru_cacherrr#rrr�subrB�escaperCr(r)�rr	�<module>r^s���89���	��	�90J��"�(���U�$�/�!�0�!��"�#�7����J�'�+�+��
�
 �
 ��
-�b�i�i�
8�91�J�Zr
codekingpro/portable-devtools · Team Ai