From 1789ff5207faa1390783d7119e9a7cc152bde491 Mon Sep 17 00:00:00 2001 From: Mike Kuth Date: Tue, 8 Nov 2022 17:06:23 -0800 Subject: [PATCH] disable tldextract caching Fetching updated TLD lists is already disabled, so the default TLD list that is included with the library will always be used and there is nothing to cache. Explicitly disabling the cache prevents possible occurences of john-kurkowski/tldextract#254. --- pypac/wpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypac/wpad.py b/pypac/wpad.py index 180f73a..2857406 100644 --- a/pypac/wpad.py +++ b/pypac/wpad.py @@ -9,7 +9,7 @@ logger = logging.getLogger(__name__) # First use of tldextract goes online to update its Public Suffix List cache. Stop it. -no_fetch_extract = tldextract.TLDExtract(suffix_list_urls=None) +no_fetch_extract = tldextract.TLDExtract(cache_dir=None, suffix_list_urls=None) def proxy_urls_from_dns(local_hostname=None):