Skip to content

Commit ae74d79

Browse files
committed
Don't use f-strings in the mx suite
1 parent f955ada commit ae74d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,14 @@ def is_included(path):
520520
# We need to make sure the arguments get passed to subprocesses, so we create a temporary launcher
521521
# with the arguments
522522
basedir = os.path.realpath(os.path.join(os.path.dirname(python_binary), '..'))
523-
jacoco_basedir = f"{basedir}-jacoco"
523+
jacoco_basedir = "%s-jacoco" % basedir
524524
shutil.rmtree(jacoco_basedir, ignore_errors=True)
525525
shutil.copytree(basedir, jacoco_basedir, symlinks=True)
526526
launcher_path = os.path.join(jacoco_basedir, 'bin', 'graalpython')
527527
with open(launcher_path, 'r', encoding='ascii', errors='ignore') as launcher:
528528
lines = launcher.readlines()
529529
assert re.match(r'^#!.*bash', lines[0]), "jacoco needs a bash launcher"
530-
lines.insert(-1, f'jvm_args+=({agent_args})\n')
530+
lines.insert(-1, 'jvm_args+=(%s)\n' % agent_args)
531531
with open(launcher_path, 'w') as launcher:
532532
launcher.writelines(lines)
533533
# jacoco only dumps the data on exit, and when we run all our unittests

0 commit comments

Comments
 (0)