From 18d7fc8f820dbac3de8c3e6b311a568a0a06793b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 20 Jan 2020 09:43:00 -0500 Subject: [PATCH] Range: header: use old school fmt % operator This should be more compatible with old pythons. --- cli/koji_cli/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/koji_cli/lib.py b/cli/koji_cli/lib.py index 49fd6abe..0e670d09 100644 --- a/cli/koji_cli/lib.py +++ b/cli/koji_cli/lib.py @@ -502,7 +502,7 @@ def download_file(url, relpath, quiet=False, noprogress=False, size=None, num=No headers = {} pos = f.tell() if pos: - headers['Range'] = f'bytes={pos}-' + headers['Range'] = ('bytes=%d-' % pos) # closing needs to be used for requests < 2.18.0 with closing(requests.get(url, headers=headers, stream=True)) as response: