Skip to content

Commit 5b0cdf0

Browse files
author
root
committed
change the dict syntax
1 parent 90897ca commit 5b0cdf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/functions/hibench_prop_env_mapping.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"""
1717
Mapping from properties to environment variable names
1818
"""
19-
from __future__ import annotations
2019

2120
HiBenchEnvPropMappingMandatory = dict(
2221
JAVA_BIN="java.bin",
@@ -241,7 +240,7 @@
241240
STREAMBENCH_FLINK_PARALLELISM="hibench.streambench.flink.parallelism",
242241
)
243242

244-
HiBenchPropEnvMapping = {v: k for k, v in HiBenchEnvPropMapping.items()}
243+
HiBenchPropEnvMapping = {v: k for k, v in list(HiBenchEnvPropMapping.items())}
245244
HiBenchPropEnvMappingMandatory = {
246-
v: k for k, v in HiBenchEnvPropMappingMandatory.items()
245+
v: k for k, v in list(HiBenchEnvPropMappingMandatory.items())
247246
}

0 commit comments

Comments
 (0)