whoops must delete type field before passing to bsv Pin class
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 16 Jul 2018 10:43:09 +0000 (11:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 16 Jul 2018 10:43:09 +0000 (11:43 +0100)
src/bsv/interface_decl.py

index 84eb2f02489082d9017c1b376f732e5ef51394c9..a4e3e757020780af7fe9537f24abfbc3605d7c60 100644 (file)
@@ -124,6 +124,8 @@ class Interface(object):
         for p in pinspecs:
             _p = {}
             _p.update(p)
+            if _p.has_key('type'):
+                del _p['type']
             if p.get('outen') is True:  # special case, generate 3 pins
                 del _p['outen']
                 for psuffix in ['out', 'outen', 'in']: