Skip to content
Permalink
Browse files

scripts: runners: add __contains__ to BuildConfiguration

Implement the in operator for this class.

Signed-off-by: Marti Bolivar <marti.bolivar@nordicsemi.no>
  • Loading branch information...
mbolivar authored and nashif committed Jun 12, 2019
1 parent 045c809 commit fe91e48418f00176620db6e628f3d2564fcabb90
Showing with 3 additions and 0 deletions.
  1. +3 −0 scripts/west_commands/runners/core.py
@@ -122,6 +122,9 @@ def __init__(self, build_dir):
self.options = {}
self._init()

def __contains__(self, item):
return item in self.options

def __getitem__(self, item):
return self.options[item]

0 comments on commit fe91e48

Please sign in to comment.
You can’t perform that action at this time.