관리-도구
편집 파일: command_context.cpython-38.pyc
U ��.e � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�contextmanager)� ExitStackc s0 e Zd Z� fdd�Zedd� �Zdd� Z� ZS )�CommandContextMixInc s t t| ��� d| _t� | _d S )NF)�superr �__init__�_in_main_contextr � _main_context��self�� __class__� �E/usr/lib/python3.8/site-packages/pip/_internal/cli/command_context.pyr s zCommandContextMixIn.__init__c c s: | j r t�d| _ z| j� d V W 5 Q R X W 5 d| _ X d S )NTF)r �AssertionErrorr r r r r �main_context s z CommandContextMixIn.main_contextc C s | j s t�| j�|�S )N)r r r � enter_context)r Zcontext_providerr r r r s z!CommandContextMixIn.enter_context)�__name__� __module__�__qualname__r r r r � __classcell__r r r r r s r N)� contextlibr Zpip._vendor.contextlib2r �objectr r r r r �<module> s