Tweak output formatting of get_file_by_url

This commit is contained in:
Alexander Cecile 2020-08-21 14:44:27 -04:00
parent beca76acfe
commit 9380fe534e

View File

@ -1482,10 +1482,10 @@ def get_file_by_url(url, params=None, **kwargs):
-------
content: str
"""
req = requests.get(url=url, params=params, **kwargs)
req.encoding = req.apparent_encoding
res_text = "\n".join([domain_to_idna(line) for line in req.text.splitlines()]) + "\n"
res_text = "\n".join([domain_to_idna(line) for line in req.text.split("\n")])
return res_text