Files
PowerToys/PythonEnv/2.7/Lib/fnmatch.pyc

42 lines
3.7 KiB
Plaintext
Raw Normal View History

2013-12-21 01:22:42 +08:00
<03>
<EFBFBD><EFBFBD>uMc@sadZddlZddddgZiZdZd<00>Zd <00>Zd
<00>Zd <00>Zd <00>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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ntfiltertfnmatcht fnmatchcaset translateidcCstj<00>dS(sClear the pattern cacheN(t_cachetclear(((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyt_purgescCs=ddl}|jj|<00>}|jj|<00>}t||<00>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<><69><EFBFBD><EFBFBD>N(tostpathtnormcaseR(tnametpatR((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyRs cCsddl}ddl}g}|jj|<00>}|tkr}t|<00>}tt<00>tkrgtj<00>nt j
|<00>t|<nt|j }|j|kr<>xf|D]"}||<00>r<>|j |<00>q<>q<>Wn9x6|D].}||jj|<00><00>r<>|j |<00>q<>q<>W|S(s2Return the subset of the list NAMES that match PATi<54><69><EFBFBD><EFBFBD>N( Rt posixpathRR RRtlent _MAXCACHERtretcompiletmatchtappend(tnamesR RR tresulttresRR
((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyR-s"       cCsd|tkrMt|<00>}tt<00>tkr7tj<00>ntj|<00>t|<nt|j|<00>dk 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((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyRCs    cCs<>dt|<00>}}d}x<>||kr<>||}|d}|dkrU|d}q|dkrn|d}q|dkr<>|}||kr<>||d kr<>|d}n||kr<>||d
kr<>|d}nx*||kr<>||d
kr<>|d}q<>W||kr|d }q<>|||!jd d <00>}|d}|dd kr\d|d}n|ddkryd |}nd||f}q|tj|<00>}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((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyRQs8

         
 (
t__doc__Rt__all__RRRRRRR(((sDd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\fnmatch.pyt<module> s