Skip to content

Commit d94b5bf

Browse files
authored
Lint
1 parent e69bab8 commit d94b5bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pysurfex/binary_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,15 @@ def get_nml_value_from_string(nml, string, sep="#", indices=None):
334334
"""
335335
start = string.find("{")
336336
end = string.find("}")
337-
substring = string[start+1:end] if start >= 0 and end >= 0 else string
337+
substring = string[start + 1 : end] if start >= 0 and end >= 0 else string
338338
nam_section = substring.split(sep)[0]
339339
nam_key = substring.split(sep)[1]
340340
value = InputDataFromNamelist.get_nml_value(
341341
nml, nam_section, nam_key, indices=indices
342342
)
343343
result = value
344344
if start >= 0 and end >= 0:
345-
result = string[:start+1] + value + string[end:]
345+
result = string[: start + 1] + value + string[end:]
346346
result = result.replace("{", "")
347347
result = result.replace("}", "")
348348
return result

0 commit comments

Comments
 (0)