Skip to content

Commit

Permalink
chore(python): migrate string format (#5056)
Browse files Browse the repository at this point in the history
Replace format with specifier with f-string
  • Loading branch information
Rotzbua committed Mar 22, 2024
1 parent b6d75ed commit edc3728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/circleci-download-artifacts.py
Expand Up @@ -57,7 +57,7 @@ def latest_artifacts(builds):
result = []
pattern = re.compile('/OpenSCAD-')
for build in builds:
response = http.request('GET', circleci_base_url + '/{0}/artifacts'.format(build), headers={ 'Accept': 'application/json' })
response = http.request('GET', f'{circleci_base_url}/{build}/artifacts', headers={'Accept': 'application/json'})
data = json.loads(response.data.decode('UTF-8'))
urls = [ x["url"] for x in data if re.search(pattern, x["url"]) ]
result.extend(urls)
Expand Down

0 comments on commit edc3728

Please sign in to comment.