2
0
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:
whitequark 2015-06-04 17:53:38 +03:00
parent 4b01e604db
commit 6c3b5a95ee

View File

@ -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)