Skip to content

Commit 28de7f8

Browse files
committed
Merge branch 'fix_ast_attrstr' into develop
2 parents f04a6cd + d96e079 commit 28de7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyverilog/vparser/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def show(self, buf=sys.stdout, offset=0, attrnames=False, showlineno=True):
2525
if self.attr_names:
2626
if attrnames:
2727
nvlist = [(n, getattr(self,n)) for n in self.attr_names]
28-
attrstr = ', '.join('%s=%s' & nv for nv in nvlist)
28+
attrstr = ', '.join('%s=%s' % (n, v) for (n, v) in nvlist)
2929
else:
3030
vlist = [getattr(self,n) for n in self.attr_names]
3131
attrstr = ', '.join('%s' % v for v in vlist)

0 commit comments

Comments
 (0)