diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-04 18:50:32 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-04 18:50:32 +0200 |
commit | c0ff8514c2ad53cb532cb60c45321595be4cd20e (patch) | |
tree | 51c675359d377dd963403daa72931b3f889b1094 /src/ee/digikey | |
parent | 238627537deafd51f41c929747c041d193e66ab9 (diff) | |
download | ee-python-c0ff8514c2ad53cb532cb60c45321595be4cd20e.tar.gz ee-python-c0ff8514c2ad53cb532cb60c45321595be4cd20e.tar.bz2 ee-python-c0ff8514c2ad53cb532cb60c45321595be4cd20e.tar.xz ee-python-c0ff8514c2ad53cb532cb60c45321595be4cd20e.zip |
o Using the old name for the digikey cache directory.
Diffstat (limited to 'src/ee/digikey')
-rw-r--r-- | src/ee/digikey/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/digikey/__init__.py b/src/ee/digikey/__init__.py index f230f00..dcd21b2 100644 --- a/src/ee/digikey/__init__.py +++ b/src/ee/digikey/__init__.py @@ -216,7 +216,7 @@ class DigikeyClient(object): def __init__(self, digikey: Digikey, cache_dir=None, on_download=None): self.digikey = digikey self.on_download = on_download or self.__nop - cache = FileCache(cache_dir or 'http_cache', forever=True) + cache = FileCache(cache_dir or 'digikey_cache', forever=True) self.sess = CacheControl(requests.Session(), cache=cache, heuristic=ExpiresAfter(days=10*365)) def _req(self, url, params=None): |