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)