U e#@sddZddlmZddlmZmZddlmZddlm Z GdddeZ Gdd d eZ dd gZ d S) z&Application data stored by virtualenv.) annotations)ABCabstractmethod)contextmanager) IS_ZIPAPPc@seZdZdZeddZeddZeddZedd Ze d d Z ed d Z e ddZ e ddZ eddZedddZeeddZeeddZdS)AppDataz:Abstract storage interface for the virtualenv application.cCsdS)zCalled before virtualenv exits.NselfrrF/opt/hc_python/lib/python3.8/site-packages/virtualenv/app_data/base.pyclosesz AppData.closecCsdS)z2Called when the user passes in the reset app data.Nrr rrr resetsz AppData.resetcCstdSNNotImplementedErrorr pathrrr py_infoszAppData.py_infocCstdSrrr rrr py_info_clearszAppData.py_info_clearcCstdSrrr rrr can_updateszAppData.can_updatecCstdSrr)r distributionfor_py_versionrrr embed_update_log"szAppData.embed_update_logcCstdSrrr rrr house&sz AppData.housecCstdSrrr rrr transient*szAppData.transientcCstdSrr)r rnamerrr wheel_image.szAppData.wheel_imageNc cs.tr$||| }|VW5QRXn|VdS)zISome paths might be within the zipapp, unzip these to a path on the disk.N)rextract)r r to_folderresultrrr ensure_extracted2szAppData.ensure_extractedcCstdSrr)r rrrrr r;szAppData.extractcCstdSrrrrrr locked@szAppData.locked)N)__name__ __module__ __qualname____doc__rr r rrpropertyrrrrrrr rr!rrrr r s6           rc@sLeZdZeddZeddZeddZeddZeed d Z d S) ContentStorecCstdSrrr rrr existsGszContentStore.existscCstdSrrr rrr readKszContentStore.readcCstdSrr)r contentrrr writeOszContentStore.writecCstdSrrr rrr removeSszContentStore.removecCsdSrrr rrr r!WszContentStore.lockedN) r"r#r$rr(r)r+r,rr!rrrr r'Fs    r'N) r% __future__rabcrr contextlibrZvirtualenv.inforrr'__all__rrrr s   ;