Merge pull request #3587 from mhils/yaml-list

fix sequence option declaration in yaml files
This commit is contained in:
Maximilian Hils 2019-07-18 03:15:08 +02:00 committed by GitHub
commit 4bebd3a1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,7 +320,9 @@ class OptManager:
update = {}
for optname, optval in self.deferred.items():
if optname in self._options:
update[optname] = self.parse_setval(self._options[optname], optval)
if isinstance(optval, str):
optval = self.parse_setval(self._options[optname], optval)
update[optname] = optval
self.update(**update)
for k in update.keys():
del self.deferred[k]