From 9cf113abdcd65440352016c5bf6472b7d5d6eb45 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Sun, 16 Sep 2018 23:05:52 -0400 Subject: [PATCH] Fix PSL download --- parsedmarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 534a20e..c345e00 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -110,7 +110,7 @@ def _get_base_domain(domain): __version__ ) headers = {"User-Agent": user_agent} - fresh_psl = requests.get(url, headers=headers).content + fresh_psl = requests.get(url, headers=headers).text with open(psl_path, "w", encoding="utf-8") as fresh_psl_file: fresh_psl_file.write(fresh_psl)