projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ee660
)
add format function
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 20 Mar 2018 17:35:09 +0000
(17:35 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 20 Mar 2018 17:35:09 +0000
(17:35 +0000)
src/interface_decl.py
patch
|
blob
|
history
diff --git
a/src/interface_decl.py
b/src/interface_decl.py
index 04fd8bfa37ed4128547c008a8d57298f06e57a20..e34d102290fc32a4fdc58631a08a75c09d026a76 100644
(file)
--- a/
src/interface_decl.py
+++ b/
src/interface_decl.py
@@
-64,6
+64,8
@@
class Interface(object):
def __str__(self):
return '\n'.join(map(str, self.pins))
+ def format(self, i):
+ return str(self).format(i)
# basic test
if __name__ == '__main__':