3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 22:14:08 +00:00

sby: core: ensured to strip the line of any uneeded whitespace

This commit is contained in:
Aki Van Ness 2022-08-04 05:58:52 -04:00 committed by Aki
parent 9368f3f987
commit 46ca20f8ec

View file

@ -335,7 +335,7 @@ class SbyConfig:
self.error(f"sby file syntax error: unexpected section '{section}', expected one of 'options, engines, script, autotune, file, files'")
if mode == "options":
entries = line.split(maxsplit = 1)
entries = line.strip().split(maxsplit = 1)
if len(entries) != 2:
self.error(f"sby file syntax error: '[options]' section entry does not have an argument '{line}'")
self.options[entries[0]] = entries[1]