Change string formatting

This commit is contained in:
elpatron68 2019-07-28 15:16:05 +02:00
parent b355a604be
commit 42f9ef0f20

View File

@ -11,9 +11,9 @@ def request(endpoint, **kwargs):
fmt = kwargs.get("format", "json")
if fmt == "xml":
content_type = f"application/{fmt}"
content_type = "application/%s" % fmt
else:
content_type = f"application/{fmt}"
content_type = "application/%s" % fmt
headers = {"content-type": content_type, "User-Agent": "pyradios/dev"}