use C style string formatting

This commit is contained in:
Campbell Barton
2014-05-22 01:12:00 +10:00
parent 27cebb2651
commit c829c71c57

View File

@@ -362,5 +362,5 @@ class UpdateAnimatedTransformConstraint(Operator):
print(log)
text = bpy.data.texts.new("UpdateAnimatedTransformConstraint Report")
text.from_string(log)
self.report({'INFO'}, "Complete report available on '{}' text datablock".format(text.name))
self.report({'INFO'}, "Complete report available on '%s' text datablock" % text.name)
return {'FINISHED'}