Add suggestions from #186
This commit is contained in:
parent
c3b07cf3dd
commit
162fe443d1
@ -70,9 +70,10 @@ def expand(yaml_data):
|
|||||||
|
|
||||||
|
|
||||||
def get_single_key_and_value(d: dict):
|
def get_single_key_and_value(d: dict):
|
||||||
k = list(d.keys())[0]
|
# used for defining a line in a harness' connection set
|
||||||
v = d[k]
|
# E.g. for the YAML input `- X1: 1`
|
||||||
return (k, v)
|
# this function returns a tuple in the form ("X1", "1")
|
||||||
|
return next(iter(d.items()))
|
||||||
|
|
||||||
|
|
||||||
def int2tuple(inp):
|
def int2tuple(inp):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user