whoops need __contains__ due to pep8 replacement in for has_key
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 29 Mar 2018 08:33:05 +0000 (09:33 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 29 Mar 2018 08:33:05 +0000 (09:33 +0100)
src/spec/interfaces.py

index 17fab1656ffb5aeeb77f0a825f86e1a48ea0e836..bc73549b40a87569eae26de5a6b835d76c13e6cd 100644 (file)
@@ -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