o $"b@sPddlmZmZddlmZddlmZmZGdddeZGdddeZ d S) )absolute_importunicode_literals)contextmanager)AppData ContentStorec@sxeZdZdZdZdZddZedZddZ d d Z d d Z d dZ ddZ eddZeddZddZddZdS)AppDataDisabledzONo application cache available (most likely as we don't have write permissions)TFcCsdSNselfr r 8/usr/lib/python3/dist-packages/virtualenv/app_data/na.py__init__zAppDataDisabled.__init__zDno app data folder available, probably no write access to the foldercCdSz do nothingNr r r r r closezAppDataDisabled.closecCrrr r r r r resetrzAppDataDisabled.resetcCtSr ContentStoreNAr pathr r r py_infozAppDataDisabled.py_infocCrr r)r distributionfor_py_versionr r r embed_update_logrz AppDataDisabled.embed_update_logcC|jr error)r r to_folderr r r extractrzAppDataDisabled.extractccs dVdSrr rr r r locked"s zAppDataDisabled.lockedcCrr r r r r r house'szAppDataDisabled.housecCrr r )r rnamer r r wheel_image+rzAppDataDisabled.wheel_imagecCr Nr r r r r py_info_clear.rzAppDataDisabled.py_info_clearN)__name__ __module__ __qualname____doc__ transient can_updater RuntimeErrorr!rrrrr#rr$propertyr%r'r*r r r r rs"   rc@s8eZdZddZddZddZddZed d Zd S) rcCr)NFr r r r r exists3rzContentStoreNA.existscCrr(r r r r r read6szContentStoreNA.readcCrr(r )r contentr r r write:rzContentStoreNA.writecCrr(r r r r r remove=rzContentStoreNA.removeccs dVdSr r r r r r r$@s zContentStoreNA.lockedN) r+r,r-r3r4r6r7rr$r r r r r2srN) __future__rr contextlibrbaserrrrr r r r s  *