From 67abd26ae8b12af341cdf0c31f6ffa1530b53e5b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 23 Jan 2020 22:05:54 -0800 Subject: [PATCH] hack/update-rhcos-bootimage: Drop the f-string F-strings are new in 3.6 [1], and my old RHEL 7.5 CSB has the old Python 3.4.9 by default. I'm probably just way behind the times, but it doesn't cost much to use the older .format() to make this compatible with all of Python 3 ;). [1]: https://www.python.org/dev/peps/pep-0498/ --- hack/update-rhcos-bootimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-rhcos-bootimage.py b/hack/update-rhcos-bootimage.py index 56da03a33b..24237dfe55 100755 --- a/hack/update-rhcos-bootimage.py +++ b/hack/update-rhcos-bootimage.py @@ -34,7 +34,7 @@ newmeta['amis'] = { } newmeta['baseURI'] = urllib.parse.urljoin(args.meta, '.') -with open(os.path.join(metadata_dir, f"rhcos-{args.arch}.json"), 'w') as f: +with open(os.path.join(metadata_dir, 'rhcos-{}.json'.format(args.arch)), 'w') as f: json.dump(newmeta, f, sort_keys=True, indent=4) # Continue to populate the legacy metadata file because there are still