/usr/local/lib/python3.6/site-packages/fsspec/__pycache__
NameSizeModeActions
archive.cpython-36.pyc26790644editdlrm
asyn.cpython-36.pyc232500644editdlrm
caching.cpython-36.pyc133250644editdlrm
callbacks.cpython-36.pyc59270644editdlrm
compression.cpython-36.pyc46450644editdlrm
config.cpython-36.pyc27400644editdlrm
conftest.cpython-36.pyc13610644editdlrm
core.cpython-36.pyc202340644editdlrm
dircache.cpython-36.pyc32920644editdlrm
exceptions.cpython-36.pyc7330644editdlrm
fuse.cpython-36.pyc101100644editdlrm
gui.cpython-36.pyc142140644editdlrm
mapping.cpython-36.pyc82080644editdlrm
parquet.cpython-36.pyc111810644editdlrm
registry.cpython-36.pyc76210644editdlrm
spec.cpython-36.pyc522480644editdlrm
transaction.cpython-36.pyc31780644editdlrm
utils.cpython-36.pyc144030644editdlrm
_version.cpython-36.pyc4640644editdlrm
__init__.cpython-36.pyc13940644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/fsspec/__pycache__/config.cpython-36.pyc (2740B)
3 8%EgT ã@svddlZddlZddlZiZejjejjdƒdƒZejj deƒZ ejfdd„Z dd„Z d d d „Z e e eƒe eƒdS) éNú~z.config/fsspecZFSSPEC_CONFIG_DIRcCsZxT|D]L}|jdƒr|jdƒdkr$q|jddƒ\}}}|||j|jƒiƒ|jƒ<qWdS)aŒSet config values from environment variables Looks for variable of the form ``FSSPEC__``. There is no attempt to convert strings, but the kwarg keys will be lower-cased. Parameters ---------- conf_dict : dict(str, dict) This dict will be mutated envdict : dict-like(str, str) Source for the values - usually the real environment ZFSSPECÚ_éN)Ú startswithÚcountÚsplitÚ setdefaultÚlower)Ú conf_dictZenvdictÚkeyrÚprotoÚkwarg©rú7/usr/local/lib/python3.6/site-packages/fsspec/config.pyÚ set_conf_env s   rcCsÒtjj|ƒsdSttj|ƒƒ}x®|D]¦}|jdƒr€tjƒ}|jtjj ||ƒƒx0|D](}|dkrbqT|j |iƒj t ||ƒƒqTW|jdƒr$t jttjj ||ƒƒƒ}x&|D]}|j |iƒj t ||ƒƒq¨Wq$WdS)a¥Set config values from files Scans for INI and JSON files in the given dictionary, and uses their contents to set the config. In case of repeated values, later values win. In the case of INI files, all values are strings, and these will not be converted. Parameters ---------- cdir : str Directory to search conf_dict : dict(str, dict) This dict will be mutated Nz.iniÚDEFAULTz.json)ÚosÚpathÚisdirÚsortedÚlistdirÚendswithÚ configparserÚ ConfigParserÚreadÚjoinrÚupdateÚdictÚjsonÚloadÚopen)Úcdirr ÚallfilesÚfnZinir ZjsrrrÚset_conf_files s      r$cCsf|dkr t}t|jttfƒr"|jn|jg}i}x"|D]}||kr4|j||ƒq4W|jf|Ž|}|S)a°Supply default values for kwargs when instantiating class Augments the passed kwargs, by finding entries in the config dict which match the classes ``.protocol`` attribute (one or more str) Parameters ---------- cls : file system implementation kwargs : dict conf_dict : dict of dict Typically this is the global configuration Returns ------- dict : the modified set of kwargs N)ÚconfÚ isinstanceÚprotocolÚtupleÚlistr)ÚclsÚkwargsr ÚprotosÚkwr rrrÚ apply_configBs  r.)N)rrrr%rrÚ expanduserZdefault_conf_dirÚenvironÚgetZconf_dirrr$r.rrrrÚs"