U .e@s,ddlmZddlmZGdddeZdS))contextmanager) ExitStackcs0eZdZfddZeddZddZZS)CommandContextMixIncs tt|d|_t|_dS)NF)superr__init___in_main_contextr _main_contextself __class__E/usr/lib/python3.8/site-packages/pip/_internal/cli/command_context.pyr szCommandContextMixIn.__init__c cs:|jr td|_z|j dVW5QRXW5d|_XdS)NTF)rAssertionErrorrr 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.contextlib2robjectrr r r rs