Fix Python 2 issue

This commit is contained in:
Sean Whalen
2018-03-04 12:04:23 -05:00
parent 0135d46afb
commit aa73f55681

View File

@@ -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)