b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/fnmatch.pyo
Size3.5 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:33
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sadZddkZddddgZhZdZd�Zd �Zd
�Zd �Zd �Z dS(
s£Filename matching with shell patterns.

fnmatch(FILENAME, PATTERN) matches according to the local convention.
fnmatchcase(FILENAME, PATTERN) always takes case in account.

The functions operate by translating the pattern into a regular
expression. They cache the compiled regular expressions for speed.

The function translate(PATTERN) returns a regular expression
corresponding to PATTERN. (It does not compile it.)
iÿÿÿÿNtfiltertfnmatcht fnmatchcaset translateidcCsti�dS(sClear the pattern cacheN(t_cachetclear(((s/usr/lib64/python2.6/fnmatch.pyt_purgescCs=ddk}|ii|�}|ii|�}t||�S(s½Test whether FILENAME matches PATTERN.

Patterns are Unix shell style:

* matches everything
? matches any single character
[seq] matches any character in seq
[!seq] matches any char not in seq

An initial period in FILENAME is not special.
Both FILENAME and PATTERN are first case-normalized
if the operating system requires it.
If you don't want this, use fnmatchcase(FILENAME, PATTERN).
iÿÿÿÿN(tostpathtnormcaseR(tnametpatR((s/usr/lib64/python2.6/fnmatch.pyRs cCsddk}ddk}g}|ii|�}|tjoDt|�}tt�tjoti�nt i
|�t|<nt|i }|i|jo3xk|D]$}||�o|i |�q¥q¥Wn<x8|D]0}||ii|��o|i |�qØqØW|S(s2Return the subset of the list NAMES that match PATiÿÿÿÿN(
Rt posixpathRR RRtlent _MAXCACHERtretcompiletmatchtappend(tnamesR RR tresulttresRR
((s/usr/lib64/python2.6/fnmatch.pyR-s&
 

cCsh|tjoDt|�}tt�tjoti�nti|�t|<nt|i|�dj S(s�Test whether FILENAME matches PATTERN, including case.

This is a version of fnmatch() which doesn't case-normalize
its arguments.
N( RRR
RRRRRtNone(R
R R((s/usr/lib64/python2.6/fnmatch.pyRCs 
 cCsÂdt|�}}d}x�||jo�||}|d}|djo|d}q|djo|d}q|djo"|}||jo||d jo|d}n||jo||d
jo|d}nx-||jo||d
jo|d}qáW||jo|d }qµ|||!id d
�}|d}|dd jod|d}n |ddjod |}nd||f}q|ti|�}qW|dS(sfTranslate a shell PATTERN to a regular expression.

There is no way to quote meta-characters.
itit*s.*t?t.t[t!t]s\[s\s\\t^s%s[%s]s\Z(?ms)(R
treplaceRtescape(R titnRtctjtstuff((s/usr/lib64/python2.6/fnmatch.pyRQs<







(
t__doc__Rt__all__RRRRRRR(((s/usr/lib64/python2.6/fnmatch.pyt<module> s