ó
€
\c        
   @   ss  d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d d l	 m
 Z
 d d l m Z d d l m Z d d	 l m Z d d
 l m Z d d l m Z d d l m Z i e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e e j 6e
 e
 j 6Z e e e e
 e e e e e e g
 Z e e d „ Z d „  Z d „  Z d S(   s%   
Package containing all pip commands
iÿÿÿÿ(   t   BundleCommand(   t   CompletionCommand(   t   FreezeCommand(   t   HelpCommand(   t   ListCommand(   t   SearchCommand(   t   ShowCommand(   t   InstallCommand(   t   UninstallCommand(   t   UnzipCommand(   t
   ZipCommandc         c   sb   | r t  t t ƒ } n t j ƒ  } x7 | D]/ \ } } |  rL | j rL q+ n  | | j f Vq+ Wd S(   s5   Yields sorted (command name, command summary) tuples.N(   t   _sort_commandst   commandst   commands_ordert   itemst   hiddent   summary(   t   ignore_hiddent   orderedt   cmditemst   namet   command_class(    (    s\   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/__init__.pyt   get_summaries0   s    c         C   sB   d d l  m } | |  t j ƒ  ƒ } | r8 | d } n t } | S(   s   Command name auto-correct.iÿÿÿÿ(   t   get_close_matchesi    (   t   difflibR   R   t   keyst   False(   R   R   t   close_commandst   guess(    (    s\   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/__init__.pyt   get_similar_commands?   s    c            s%   ‡  f d †  } t  |  j ƒ  d | ƒS(   Nc            s.   y ˆ  j  |  d ƒ SWn t k
 r) d SXd  S(   Ni   iÿ   (   t   indext
   ValueError(   t   key(   t   order(    s\   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/__init__.pyt   keyfnN   s    R    (   t   sortedR   (   t   cmddictR!   R"   (    (   R!   s\   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/__init__.pyR   M   s    N(   t   __doc__t   pip.commands.bundleR    t   pip.commands.completionR   t   pip.commands.freezeR   t   pip.commands.helpR   t   pip.commands.listR   t   pip.commands.searchR   t   pip.commands.showR   t   pip.commands.installR   t   pip.commands.uninstallR   t   pip.commands.unzipR	   t   pip.commands.zipR
   R   R   R   t   TrueR   R   R   (    (    (    s\   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/__init__.pyt   <module>   sH   









		