mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 01:32:05 -04:00
Do not use f-strings in Python system tests
Use str.format() instead of f-strings in Python system tests to enable them to work on Python 3 versions older than 3.6 as the latter is not available on some operating systems used in GitLab CI that are still actively supported (CentOS 6, Debian 9, Ubuntu 16.04).
This commit is contained in:
parent
62b8a5e59d
commit
5562c38ffb
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ def zone_mtime(zonedir, name):
|
|||
|
||||
|
||||
def zone_keyid(nameserver, zone, key):
|
||||
with open(f'{nameserver}/{zone}.{key}.id') as f:
|
||||
with open('{}/{}.{}.id'.format(nameserver, zone, key)) as f:
|
||||
keyid = f.read().strip()
|
||||
print(f'{zone}-{key} ID: {keyid}')
|
||||
print('{}-{} ID: {}'.format(zone, key, keyid))
|
||||
return keyid
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue