From 42f9ef0f207186aeb949793268f3530b7432f543 Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sun, 28 Jul 2019 15:16:05 +0200 Subject: [PATCH] Change string formatting --- librb/rbRadios.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librb/rbRadios.py b/librb/rbRadios.py index a018215..25af8d5 100644 --- a/librb/rbRadios.py +++ b/librb/rbRadios.py @@ -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"}