‡Æ
âMö9c       s+    d  Z    d k Z  d k T	 d „  Z  d „  Z  d „  Z ' d „  Z 6 d „  Z L d „  Z X d	 „  Z	 Y d
 „  Z
 \ d „  Z h d „  Z m d „  Z r d „  Z x d „  Z  d „  Z ‰ d „  Z ” d „  Z   d „  Z ¥ d „  Z © d Z « d „  Z Ç d „  Z Û d „  Z d S(   s7   Pathname and path-related operations for the Macintosh.N(   s   *c    s   	 
 |  i ƒ  Sd  S(   N(   s   paths   lower(   s   paths$   /mit/python/lib/python2.0/macpath.pys   normcase	 s   c    s(      d |  j o |  d d j Sd S(   sø   Return true if a path is absolute.
    On the Mac, relative paths begin with a colon,
    but as a special case, paths with no colons at all are also relative.
    Anything else is absolute (the string up to the first colon is the
    volume name).s   :i    N(   s   s(   s   ss$   /mit/python/lib/python2.0/macpath.pys   isabs s   c    sÔ     |  }  x· | d  rª }  |  p
 t | ƒ o  | }  q n  | d  d j o  | d } n  d | j o   d | } n ! | d d j o " | d } n # | | } q W$ | Sd  S(   Ni    i   s   :(   s   ss   paths   ps   ts   isabs(   s   ss   ps   paths   ts$   /mit/python/lib/python2.0/macpath.pys   join s   	 		
c    sÕ   ' * , d |  j o , d |  f Sn - d } . xD t t |  ƒ ƒ d . r+ } / |  | d j o / | d } n qH W0 |  | d  |  | f \ } } 1 | o d | j o 2 | d } n 3 | | f Sd S(   sß   Split a pathname into two parts: the directory leading up to the final
    bit, and the basename (the filename, without colons, in that directory).
    The result (s, t) is such that join(s, t) yields the original argument.s   :s    i    i   N(   s   ss   colons   ranges   lens   is   paths   file(   s   ss   colons   is   paths   files$   /mit/python/lib/python2.0/macpath.pys   split' s    	 	 !c    sâ   6 : < d d f \ } } = x° |  d = r£ } > | d j o! ? | | | d f \ } } nm @ | d j o4 A | o B | | | f \ } } n
 D | } n) E | o F | | } n H | | } q' WI | | f Sd S(   sÒ   Split a path into root and extension.
    The extension is everything starting at the last dot in the last
    pathname component; the root is everything before that.
    It is always true that root + ext == p.s    i    s   :s   .N(   s   roots   exts   ps   c(   s   ps   roots   exts   cs$   /mit/python/lib/python2.0/macpath.pys   splitext6 s    	!

c    s   L Q S d |  f Sd S(   s@  Split a pathname into a drive specification and the rest of the
    path.  Useful on DOS/Windows/NT; on the Mac, the drive is always
    empty (don't use the volume name -- it doesn't have the same
    syntactic and semantic oddities as DOS drive letters, such as there
    being a separate current directory per drive).s    N(   s   p(   s   ps$   /mit/python/lib/python2.0/macpath.pys
   splitdriveL s   c    s   X X t  |  ƒ d Sd  S(   Ni    (   s   splits   s(   s   ss$   /mit/python/lib/python2.0/macpath.pys   dirnameX s    c    s   Y Y t  |  ƒ d Sd  S(   Ni   (   s   splits   s(   s   ss$   /mit/python/lib/python2.0/macpath.pys   basenameY s    c    sW   \ ] _ y ` t  i |  ƒ } Wn  a t  i j
 o b d Sn Xc t | t ƒ Sd S(   s<   Return true if the pathname refers to an existing directory.i    N(   s   oss   stats   ss   sts   errors   S_ISDIRs   ST_MODE(   s   ss   sts$   /mit/python/lib/python2.0/macpath.pys   isdir\ s   c    s'   h i j t  i |  ƒ } k | t Sd S(   s1   Return the size of a file, reported by os.stat().N(   s   oss   stats   filenames   sts   ST_SIZE(   s   filenames   sts$   /mit/python/lib/python2.0/macpath.pys   getsizeh s   c    s'   m n o t  i |  ƒ } p | t Sd S(   sC   Return the last modification time of a file, reported by os.stat().N(   s   oss   stats   filenames   sts   ST_MTIME(   s   filenames   sts$   /mit/python/lib/python2.0/macpath.pys   getmtimem s   c    s'   r s t t  i |  ƒ } u | t Sd S(   s=   Return the last access time of a file, reported by os.stat().N(   s   oss   stats   filenames   sts   ST_ATIME(   s   filenames   sts$   /mit/python/lib/python2.0/macpath.pys   getatimer s   c    s   x z | d Sd S(   sq   Return true if the pathname refers to a symbolic link.
    Always false on the Mac, until we understand Aliases.)i    N(    (   s   ss$   /mit/python/lib/python2.0/macpath.pys   islinkx s   c    sW    € ‚ y ƒ t  i |  ƒ } Wn  „ t  i j
 o … d Sn X† t | t ƒ Sd S(   s?   Return true if the pathname refers to an existing regular file.i    N(   s   oss   stats   ss   sts   errors   S_ISREGs   ST_MODE(   s   ss   sts$   /mit/python/lib/python2.0/macpath.pys   isfile s   c    sM   ‰ Š Œ y  t  i |  ƒ } Wn  Ž t  i j
 o  d Sn X d Sd S(   sD   Return true if the pathname refers to an existing file or directory.i    i   N(   s   oss   stats   ss   sts   error(   s   ss   sts$   /mit/python/lib/python2.0/macpath.pys   exists‰ s   c    sÂ   ” • – |  o – d Sn — |  d } ˜ xˆ |  d ˜ r{ } ™ xo t t | ƒ ƒ d ™ rV } š | | d  | | d  j o0 › | |  } œ | d j o œ d Sn  Pn qV Wq5 Wž | Sd S(   sG   Given a list of pathnames, returns the longest common leading components    i    i   N(   s   ms   prefixs   items   ranges   lens   i(   s   ms   prefixs   items   is$   /mit/python/lib/python2.0/macpath.pys   commonprefix” s     	 	  c    s     ¡ ¢ |  Sd S(   sE   Dummy to retain interface-compatibility with other operating systems.N(   s   path(   s   paths$   /mit/python/lib/python2.0/macpath.pys
   expandvars  s   c    s   ¥ ¦ § |  Sd S(   sE   Dummy to retain interface-compatibility with other operating systems.N(   s   path(   s   paths$   /mit/python/lib/python2.0/macpath.pys
   expanduser¥ s   s-   macpath.norm_error: path cannot be normalizedc    sO  « ­ ¯ d |  j o ° d |  Sn ² |  i d ƒ } ³ d } ´ x› ´ | t | ƒ d j  o€ µ | | d j o | | d d j oF ¶ | d j o& · | | d | d 5¸ | d } n » t d ‚ n ½ | d } qF W¿ d i | ƒ }  Â |  d d j o' t | ƒ d j o |  d t |  ƒ j o Ã |  d  }  n Ä |  Sd S(   sL   Normalize a pathname.  Will return the same result for
    equivalent paths.s   :i   s    s+   Cannot use :: immedeately after volume namei   N(   s   ss   splits   compss   is   lens
   norm_errors   join(   s   ss   compss   is$   /mit/python/lib/python2.0/macpath.pys   normpath« s"   	 )?c    s«   Ç Î Ð y Ñ t  i |  ƒ } Wn  Ò t  i j
 o Ó d Sn XÔ | | |  | ƒ Õ xL | d Õ r? } Ö t |  | ƒ } × t	 | ƒ o Ø t
 | | | ƒ n qa Wd S(   so  Directory tree walk.
    For each directory under top (including top itself),
    func(arg, dirname, filenames) is called, where
    dirname is the name of the directory and filenames is the list
    of files (and subdirectories etc.) in the directory.
    The func may modify the filenames list, to implement a filter,
    or to impose a different order of visiting.Ni    (   s   oss   listdirs   tops   namess   errors   funcs   args   names   joins   isdirs   walk(   s   tops   funcs   args   namess   names$   /mit/python/lib/python2.0/macpath.pys   walkÇ s    	c    sD   Û Ü Ý t  |  ƒ o Þ t t i ƒ  |  ƒ }  n ß t |  ƒ Sd S(   s   Return an absolute path.N(   s   isabss   paths   joins   oss   getcwds   normpath(   s   paths$   /mit/python/lib/python2.0/macpath.pys   abspathÛ s   (   s   __doc__s   oss   stats   normcases   isabss   joins   splits   splitexts
   splitdrives   dirnames   basenames   isdirs   getsizes   getmtimes   getatimes   islinks   isfiles   existss   commonprefixs
   expandvarss
   expandusers
   norm_errors   normpaths   walks   abspath(    s$   /mit/python/lib/python2.0/macpath.pys   ? s0   


	