projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c53871
)
whoops need __contains__ due to pep8 replacement in for has_key
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 29 Mar 2018 08:33:05 +0000
(09:33 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 29 Mar 2018 08:33:05 +0000
(09:33 +0100)
src/spec/interfaces.py
patch
|
blob
|
history
diff --git
a/src/spec/interfaces.py
b/src/spec/interfaces.py
index 17fab1656ffb5aeeb77f0a825f86e1a48ea0e836..bc73549b40a87569eae26de5a6b835d76c13e6cd 100644
(file)
--- 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