Ζ
Φή?:c       s4   d  Z  d k Z h  Z d   Z d   Z d   Z d S(   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.)
Nc    s>   d k  } | i i |   }  | i i |  } t |  |  Sd 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(   s   oss   paths   normcases   names   pats   fnmatchcase(   s   names   pats   oss6   /home/guest/edwardam/cmp2/py2/lib/python2.0/fnmatch.pys   fnmatch s
     	c    sO   t  i |  o# t |  } t i |  t  | <n t  | i |   t	 j	 Sd S(   s   Test whether FILENAME matches PATTERN, including case.
	
	This is a version of fnmatch() which doesn't case-normalize
	its arguments.
	N(
   s   _caches   has_keys   pats	   translates   ress   res   compiles   matchs   names   None(   s   names   pats   ress6   /home/guest/edwardam/cmp2/py2/lib/python2.0/fnmatch.pys   fnmatchcase& s
     c    sψ  d t  |   f \ } } d } xΛ| | j  o½|  | } | d } | d j o | d } n| d j o | d } np| d j oO| } | | j  o |  | d	 j o | d } n | | j  o |  | d
 j o | d } n x- | | j  o |  | d
 j o | d } qζ W| | j o | d } n£ |  | | !} | d } | d d	 j o d | d d
 } n[ | d t  |  j o
 d } n: x( | d d j o | d | d } qWd | d
 } | | } n | t i	 |  } q! W| d Sd S(   sa   Translate a shell PATTERN to a regular expression.
	
	There is no way to quote meta-characters.
	i    s    i   s   *s   .*s   ?s   .s   [s   !s   ]s   \[s   [^s   ^s   \^s   $N(
   s   lens   pats   is   ns   ress   cs   js   stuffs   res   escape(   s   pats   is   ns   ress   cs   js   stuffs6   /home/guest/edwardam/cmp2/py2/lib/python2.0/fnmatch.pys	   translate2 sF      

 

 (   s   __doc__s   res   _caches   fnmatchs   fnmatchcases	   translate(    s6   /home/guest/edwardam/cmp2/py2/lib/python2.0/fnmatch.pys   ? s
   			