Viewing File: /usr/lib/python3.6/site-packages/pip/__pycache__/__init__.cpython-36.opt-1.pyc
3
aj. @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
ejde
d yd dlZW n e
k
r~ Y nNX ejdkreedd dk ryd d lmZ W n e
efk
r Y n
X ej d d
lmZmZmZ d dlmZmZ d dlmZmZ d d
lmZmZm Z m!Z! d dl"m#Z#m$Z$ d dl%m&Z&m'Z' d dl%m(Z( d dl m)Z) d dl*Z+e+j,Z,dZ-ej.e/Z0ejde)d dd Z1dd Z2dd Z3dd Z4d ddZ5G dd de6Z7e/dkrej8e5 dS )! )absolute_importN)DependencyWarningignore)categorydarwinZOPENSSL_VERSION_NUMBERi )securetransport)InstallationErrorCommandErrorPipError)get_installed_distributionsget_prog)deprecationdist_is_editable)git mercurial
subversionbazaar)ConfigOptionParserUpdatingDefaultsHelpFormatter)
get_summariesget_similar_commands)
commands_dict)InsecureRequestWarningz9.0.3c sZ dt jkrdS t jd j dd } tt jd }y| |d W n tk
rZ d Y nX dd t D g }yfd d| D d
}W n tk
r d}Y nX t }|r|dkrtjd |dkoԈ j d
rJg } j
}x<tddD ].}|jj |r|j| dd kr|j
|j qW |rJx|D ]}t| q.W tjd t| }|dd |jjD 7 }dd | d|d D fdd|D } fdd|D }x|D ](} | d
}
| d r|
d7 }
t|
qW np j d
s j dr0dd |jD }|j
|j dd |D }dd |D 7 tdj fddD tjd dS )zCommand and option completion for the main option parser (and options)
and its subcommands (and options).
Enable by sourcing one of the completion shell scripts (bash, zsh or fish).
ZPIP_AUTO_COMPLETENZ
COMP_WORDS Z
COMP_CWORD c S s g | ]\}}|qS r ).0cmdZsummaryr r /usr/lib/python3.6/__init__.py
<listcomp>U s z autocomplete.<locals>.<listcomp>c s g | ]}| kr|qS r r )r w)subcommandsr r r Y s r helpZ uninstall-T)Z
local_onlyc S s&