관리-도구
편집 파일: __init__.cpython-36.opt-1.pyc
3 �Pf� � @ s& d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ejeejee je ejeejeejeejeejeejeejeejeejeiZeeeeeeeeee eegZddd�Zdd� Zdd� Z dS )z% Package containing all pip commands � )�absolute_import)�CompletionCommand)�DownloadCommand)� FreezeCommand)�HashCommand)�HelpCommand)�ListCommand)�CheckCommand)� SearchCommand)�ShowCommand)�InstallCommand)�UninstallCommand)�WheelCommandTc c s: | rt tt�}ntj� }x|D ]\}}||jfV qW dS )z5Yields sorted (command name, command summary) tuples.N)�_sort_commands� commands_dict�commands_order�itemsZsummary)ZorderedZcmditems�nameZ command_class� r �/usr/lib/python3.6/__init__.py� get_summaries4 s r c C s6 ddl m} | j� } || tj� �}|r.|d S dS dS )zCommand name auto-correct.r )�get_close_matchesFN)Zdifflibr �lowerr �keys)r r Zclose_commandsr r r �get_similar_commands@ s r c s � fdd�}t | j� |d�S )Nc s( y� j | d �S tk r" dS X d S )N� � )�index� ValueError)�key)�orderr r �keyfnO s z_sort_commands.<locals>.keyfn)r )�sortedr )Zcmddictr r! r )r r r N s r N)T)!�__doc__Z __future__r Zpip.commands.completionr Zpip.commands.downloadr Zpip.commands.freezer Zpip.commands.hashr Zpip.commands.helpr Zpip.commands.listr Zpip.commands.checkr Zpip.commands.searchr Zpip.commands.showr Zpip.commands.installr Zpip.commands.uninstallr Zpip.commands.wheelr r r r r r r r r r r �<module> sP