MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/2/cwd/usr/lib/python2.4/fnmatch.pyc
mò
‚=5Dc@sOdZdkZddddgZhZd„Zd„Zd„Zd	„ZdS(
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.)
Ntfiltertfnmatchtfnmatchcaset	translatecCs:dk}|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).
    N(tostpathtnormcasetnametpatR(RRR((t/usr/lib/python2.4/fnmatch.pyRs
	cCsédk}dk}g}|ii|ƒ}|tjo#t|ƒ}t	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 PATN(Rt	posixpathtresultRRRt_cacheRtrestretcompiletmatchtnamesRtappend(RRR
R
RRRR((R	R(s$


cCsG|tjo#t|ƒ}ti|ƒt|<nt|i|ƒdj	S(sTest whether FILENAME matches PATTERN, including case.

    This is a version of fnmatch() which doesn't case-normalize
    its arguments.
    N(	RRRR
RRRRtNone(RRR
((R	R<s

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|t	i
|ƒ}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]t$N(tlenRtitnR
tctjtreplacetstuffRtescape(RR RR
R!RR#((R	RHs>







(t__doc__Rt__all__RRRRR(R&RRRRRR((R	Rs