-í
ç¶<c       s|    d  Z    d k Z  d k T d d d d d d d	 d
 d d d d d d d d d d d d d g Z  d „  Z  d „  Z  d „  Z + d „  Z : d „  Z P d „  Z	 \ d „  Z
 ] d „  Z ` d  „  Z l d! „  Z q d" „  Z v d# „  Z | d$ „  Z ƒ d% „  Z  d& „  Z ˜ d' „  Z ¤ d( „  Z © d) „  Z ­ d* Z ¯ d+ „  Z Ë d, „  Z å d- „  Z ì e Z d S(.   s7   Pathname and path-related operations for the Macintosh.N(   s   *s   normcases   isabss   joins
   splitdrives   splits   splitexts   basenames   dirnames   commonprefixs   getsizes   getmtimes   getatimes   islinks   existss   isdirs   isfiles   walks
   expandusers
   expandvarss   normpaths   abspathc    s     |  i ƒ  Sd  S(   N(   s   paths   lower(   s   path(    (    s   /usr/lib/python2.2/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   s(    (    s   /usr/lib/python2.2/macpath.pys   isabs s   c    sÑ     |  }  x´ | D ]© }  |  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   s   :iÿÿÿÿ(   s   ss   paths   ps   ts   isabs(   s   ss   ps   ts   path(    (    s   /usr/lib/python2.2/macpath.pys   join s   	
 		
c    sÓ   + . 0 d |  j o 0 d |  f Sn 1 d } 2 xB t t |  ƒ ƒ D2 ]+ } 3 |  | d j o 3 | d } n qF W4 |  | d  |  | f \ } } 5 | o d | j o 6 | d } n 7 | | 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   files   is   path(    (    s   /usr/lib/python2.2/macpath.pys   split+ s    	 	 !c    sà   : > @ d d f \ } } A x® |  DA ]£ } B | d j o! C | | | d f \ } } nm D | d j o4 E | o F | | | f \ } } n
 H | } n) I | o J | | } n L | | } q% WM | | 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    s   :s   .N(   s   roots   exts   ps   c(   s   ps   exts   roots   c(    (    s   /usr/lib/python2.2/macpath.pys   splitext: s   
 	!

c    s   P U W 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   p(    (    s   /usr/lib/python2.2/macpath.pys
   splitdriveP s   c    s   \ \ t  |  ƒ d Sd  S(   Ni    (   s   splits   s(   s   s(    (    s   /usr/lib/python2.2/macpath.pys   dirname\ s    c    s   ] ] t  |  ƒ d Sd  S(   Ni   (   s   splits   s(   s   s(    (    s   /usr/lib/python2.2/macpath.pys   basename] s    c    sW   ` a c y d t  i |  ƒ } Wn  e t  i j
 o f d Sn Xg 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   st(    (    s   /usr/lib/python2.2/macpath.pys   isdir` s   c    s'   l m n t  i |  ƒ } o | t Sd S(   s1   Return the size of a file, reported by os.stat().N(   s   oss   stats   filenames   sts   ST_SIZE(   s   filenames   st(    (    s   /usr/lib/python2.2/macpath.pys   getsizel s   c    s'   q r s t  i |  ƒ } t | 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   st(    (    s   /usr/lib/python2.2/macpath.pys   getmtimeq s   c    s'   v w x t  i |  ƒ } y | 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   st(    (    s   /usr/lib/python2.2/macpath.pys   getatimev s   c    s   | ~ € 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   s(    (    s   /usr/lib/python2.2/macpath.pys   islink| 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   st(    (    s   /usr/lib/python2.2/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   st(    (    s   /usr/lib/python2.2/macpath.pys   exists s   c    s¾   ˜ ™ š |  o š d Sn › |  d } œ x„ |  Dœ ]y }  xm t t | ƒ ƒ D ]V } ž | | d  | | d  j o0 Ÿ | |  }   | d j o   d Sn ¡ Pn qR Wq3 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   items   prefixs   i(    (    s   /usr/lib/python2.2/macpath.pys   commonprefix˜ s    
 	 	  c    s   ¤ ¥ ¦ |  Sd S(   sE   Dummy to retain interface-compatibility with other operating systems.N(   s   path(   s   path(    (    s   /usr/lib/python2.2/macpath.pys
   expandvars¤ s   c    s   © ª « |  Sd S(   sE   Dummy to retain interface-compatibility with other operating systems.N(   s   path(   s   path(    (    s   /usr/lib/python2.2/macpath.pys
   expanduser© s   s-   macpath.norm_error: path cannot be normalizedc    sM  ¯ ± ³ 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 :: immediately after volume nameiÿÿÿÿi   N(   s   ss   splits   compss   is   lens
   norm_errors   join(   s   ss   is   comps(    (    s   /usr/lib/python2.2/macpath.pys   normpath¯ s"   	 )>c    s©   Ë Ø Ú y Û t  i |  ƒ } Wn  Ü t  i j
 o Ý d Sn XÞ | | |  | ƒ ß xJ | Dß ]? } à t |  | ƒ } á t	 | ƒ o â t
 | | | ƒ n q_ Wd S(   sI  Directory tree walk with callback function.

    For each directory in the directory tree rooted at top (including top
    itself, but excluding '.' and '..'), call func(arg, dirname, fnames).
    dirname is the name of the directory, and fnames a list of the names of
    the files and subdirectories in dirname (excluding '.' and '..').  func
    may modify the fnames list in-place (e.g. via del or slice assignment),
    and walk will only recurse into the subdirectories whose names remain in
    fnames; this can be used to implement a filter, or to impose a specific
    order of visiting.  No semantics are defined for, or required of, arg,
    beyond that arg is always passed to func.  It can be used, e.g., to pass
    a filename pattern, or a mutable object designed to accumulate
    statistics.  Passing None for arg is common.N(   s   oss   listdirs   tops   namess   errors   funcs   args   names   joins   isdirs   walk(   s   tops   funcs   args   names   names(    (    s   /usr/lib/python2.2/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   path(    (    s   /usr/lib/python2.2/macpath.pys   abspathå s   (   s   __doc__s   oss   stats   __all__s   normcases   isabss   joins   splits   splitexts
   splitdrives   dirnames   basenames   isdirs   getsizes   getmtimes   getatimes   islinks   isfiles   existss   commonprefixs
   expandvarss
   expandusers
   norm_errors   normpaths   walks   abspaths   realpath(   s   realpaths   commonprefixs   existss   splitexts   basenames   normcases   walks
   expandvarss
   expandusers   getmtimes   getatimes   dirnames   isfiles   isdirs   joins   __all__s   isabss   normpaths   getsizes
   splitdrives   splits   oss   abspaths
   norm_errors   islink(    (    s   /usr/lib/python2.2/macpath.pys   ? s4   
H

	