From be96de66d3b258988aca259b2d17928c1ea96bed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 29 Mar 2018 09:33:05 +0100 Subject: [PATCH] whoops need __contains__ due to pep8 replacement in for has_key --- src/spec/interfaces.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spec/interfaces.py b/src/spec/interfaces.py index 17fab16..bc73549 100644 --- a/src/spec/interfaces.py +++ b/src/spec/interfaces.py @@ -8,6 +8,9 @@ class Pinouts(object): self.pins = {} self.fnspec = {} + def __contains__(self, k): + return k in self.pins + def has_key(self, k): return k in self.pins -- 2.30.2