ó
û_¾Tc           @   sW   d  d l  Z  d  d l m Z d Z i d d 6d d 6Z d e f d	 „  ƒ  YZ e ƒ  d S(
   iÿÿÿÿN(   t   CommandsJ   
# pip %(shell)s completion start%(script)s# pip %(shell)s completion end
sÏ   
_pip_completion()
{
    COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
t   bashsñ   
function _pip_completion {
  local words cword
  read -Ac words
  read -cn cword
  reply=( $( COMP_WORDS="$words[*]" \
             COMP_CWORD=$(( cword-1 )) \
             PIP_AUTO_COMPLETE=1 $words[1] ) )
}
compctl -K _pip_completion pip
t   zsht   CompletionCommandc           B   s,   e  Z d  Z d Z e Z d „  Z d „  Z RS(   t
   completions2   A helper command to be used for command completionc         C   sm   t  t |  ƒ j ƒ  |  j j d d d d d d d d d	 d
 ƒ|  j j d d d d d d d d d	 d ƒd  S(   Ns   --bashs   -bt   actiont   store_constt   constR   t   destt   shellt   helps   Emit completion code for bashs   --zshs   -zR   s   Emit completion code for zsh(   t   superR   t   __init__t   parsert
   add_option(   t   self(    (    so   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.pyR   #   s    				c         C   s‘   t  j ƒ  } g  t | ƒ D] } d | ^ q } | j | k rp t  j | j d ƒ } t i | d 6| j d 6GHn t j j d d j	 | ƒ ƒ d S(   s-   Prints the completion code of the given shells   --t    t   scriptR	   s   ERROR: You must pass %s
s    or N(
   t   COMPLETION_SCRIPTSt   keyst   sortedR	   t   gett   BASE_COMPLETIONt   syst   stderrt   writet   join(   R   t   optionst   argst   shellsR	   t   shell_optionsR   (    (    so   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.pyt   run2   s    #(   t   __name__t
   __module__t   namet   summaryt   Truet   hiddenR   R   (    (    (    so   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.pyR      s
   	(   R   t   pip.basecommandR    R   R   R   (    (    (    so   /var/www/send.findwatt.com/datamanager/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/completion.pyt   <module>   s   	

