diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-23 15:46:49 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2018-10-25 15:43:52 +0100 |
commit | 9359c0678013e859ad863bf30e1405eeb9f35c65 (patch) | |
tree | 788d5b9beab83b10460da48e500d7c9a7c3d1987 /buildstream/_workspaces.py | |
parent | 95adf09e6e66b3eb9fe53c816450ae3273963bd4 (diff) | |
download | buildstream-9359c0678013e859ad863bf30e1405eeb9f35c65.tar.gz |
_workspaces.py: Simplify chained comparison
In `_parse_workspace_config` there was a chained version comparison
which is simplified in this commit to quieten a pylint issue.
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'buildstream/_workspaces.py')
-rw-r--r-- | buildstream/_workspaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_workspaces.py b/buildstream/_workspaces.py index adffaa694..468073f05 100644 --- a/buildstream/_workspaces.py +++ b/buildstream/_workspaces.py @@ -367,7 +367,7 @@ class Workspaces(): for element, config in _yaml.node_items(workspaces) } - elif version >= 1 and version <= BST_WORKSPACE_FORMAT_VERSION: + elif 1 <= version <= BST_WORKSPACE_FORMAT_VERSION: workspaces = _yaml.node_get(workspaces, dict, "workspaces", default_value={}) res = {element: self._load_workspace(node) for element, node in _yaml.node_items(workspaces)} |