forked from M-Labs/artiq
1
0
Fork 0

Use proper format function.

This commit is contained in:
whitequark 2015-06-04 17:53:38 +03:00
parent 4b01e604db
commit 6c3b5a95ee
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class Printer(algorithm.Visitor):
def generic_visit(self, node): def generic_visit(self, node):
if hasattr(node, 'type'): if hasattr(node, 'type'):
self.rewriter.insert_after(node.loc, 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) super().generic_visit(node)