Skip to content
Browse files

scripts: runners: add __contains__ to BuildConfiguration

Implement the in operator for this class.

Signed-off-by: Marti Bolivar <>
  • 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/
@@ -122,6 +122,9 @@ def __init__(self, build_dir):
self.options = {}

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.