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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user