From 9368f3f987c6927c50c5d26d952a5276e14fc422 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 4 Aug 2022 05:52:59 -0400 Subject: [PATCH] sby: core: explicitly split the the entries for the `[options]` section params to be at most one, --- sbysrc/sby_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index e3cf922..ad877b7 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -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() + entries = line.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]