Cleanup: use percentage formatting

`str.format` and `f-string` use was minimal.
Prefer using a single style of string formatting
unless an alternative is more widely adopted.
This commit is contained in:
2020-06-26 12:30:03 +10:00
parent 2db4a81fe4
commit 646ef49e19
13 changed files with 44 additions and 40 deletions

View File

@@ -234,7 +234,7 @@ class SequencerFadesAdd(Operator):
sequence.invalidate('COMPOSITE')
sequence_string = "sequence" if len(faded_sequences) == 1 else "sequences"
self.report({'INFO'}, "Added fade animation to {} {}.".format(len(faded_sequences), sequence_string))
self.report({'INFO'}, "Added fade animation to %d %s." % (len(faded_sequences), sequence_string))
return {'FINISHED'}
def calculate_fade_duration(self, context, sequence):
@@ -362,7 +362,7 @@ class Fade:
return max_value if max_value > 0.0 else 1.0
def __repr__(self):
return "Fade {}: {} to {}".format(self.type, self.start, self.end)
return "Fade %r: %r to %r" % (self.type, self.start, self.end)
def calculate_duration_frames(context, duration_seconds):