Skip to content

Commit

Permalink
Use old formatting to be compatible with Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mxamin committed Apr 5, 2024
1 parent 42132ff commit 390235d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/softhsm_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,20 @@ def setup() -> None:
if softhsm_version == 2:
softhsm_db = _temp_dir()
f.write(
f"""
"""
# Generated by test
directories.tokendir = {softhsm_db}
directories.tokendir = {}
objectstore.backend = file
log.level = DEBUG
"""
""".format(softhsm_db)
)
else:
softhsm_db = _temp_file()
f.write(
f"""
"""
# Generated by test
0:{softhsm_db}
"""
0:{}
""".format(softhsm_db)
)

logging.debug('Initializing the token')
Expand Down Expand Up @@ -223,7 +223,7 @@ def setup() -> None:
'[pkcs11_section]',
'engine_id = pkcs11',
# dynamic_path,
f"MODULE_PATH = {component_path['P11_MODULE']}",
"MODULE_PATH = {}".format(component_path['P11_MODULE']),
'init = 0',
]
)
Expand Down

0 comments on commit 390235d

Please sign in to comment.