From aa73f5568141383cd47565d3bf08238fc55cd63c Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Sun, 4 Mar 2018 12:04:23 -0500 Subject: [PATCH] Fix Python 2 issue --- parsedmarc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc.py b/parsedmarc.py index fd3163c..d28be5d 100644 --- a/parsedmarc.py +++ b/parsedmarc.py @@ -97,7 +97,7 @@ def _get_base_domain(domain): def download_psl(): fresh_psl = publicsuffix.fetch() - with open(psl_path, "w", encoding="utf-8") as fresh_psl_file: + with open(psl_path, "w") as fresh_psl_file: fresh_psl_file.write(fresh_psl.read()) return publicsuffix.PublicSuffixList(fresh_psl)