mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-29 05:03:34 +08:00
Use proper format function.
This commit is contained in:
parent
4b01e604db
commit
6c3b5a95ee
@ -303,7 +303,7 @@ class Printer(algorithm.Visitor):
|
||||
def generic_visit(self, node):
|
||||
if hasattr(node, 'type'):
|
||||
self.rewriter.insert_after(node.loc,
|
||||
":%s" % self.type_printer.name(node.type))
|
||||
":%s".format(self.type_printer.name(node.type)))
|
||||
|
||||
super().generic_visit(node)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user