U ��.e�@s,ddlmZddlmZGdd�de�ZdS)�)�contextmanager)� ExitStackcs0eZdZ�fdd�Zedd��Zdd�Z�ZS)�CommandContextMixIncs tt|���d|_t�|_dS)NF)�superr�__init__�_in_main_contextr� _main_context��self�� __class__��E/usr/lib/python3.8/site-packages/pip/_internal/cli/command_context.pyr szCommandContextMixIn.__init__c cs:|jr t�d|_z|j� dVW5QRXW5d|_XdS)NTF)r�AssertionErrorrr r r r� main_contexts  z CommandContextMixIn.main_contextcCs|js t�|j�|�S)N)rrr� enter_context)r Zcontext_providerr r rrs z!CommandContextMixIn.enter_context)�__name__� __module__� __qualname__rrrr� __classcell__r r r rr s  rN)� contextlibrZpip._vendor.contextlib2r�objectrr r r r�s