Skip to content

Commit 7582c01

Browse files
committed
Keeping compatibility with older python versions
1 parent c4266b3 commit 7582c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/windows/models/properties_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def remove_keyframe(self, item):
200200
clip_data = c.data.get('objects').get(object_id)
201201

202202
if property_key in clip_data: # Update clip attribute
203-
log_id = f"{clip_id}/{object_id}" if object_id else clip_id
203+
log_id = "{}/{}".format(clip_id, object_id) if object_id else clip_id
204204
log.debug("%s: remove %s keyframe. %s", log_id, property_key, clip_data.get(property_key))
205205

206206
# Determine type of keyframe (normal or color)
@@ -289,7 +289,7 @@ def color_update(self, item, new_color, interpolation=-1, interpolation_details=
289289

290290
# Update clip attribute
291291
if property_key in clip_data:
292-
log_id = f"{clip_id}/{object_id}" if object_id else clip_id
292+
log_id = "{}/{}".format(clip_id, object_id) if object_id else clip_id
293293
log.debug("%s: update color property %s. %s", log_id, property_key, clip_data.get(property_key))
294294

295295
# Loop through each keyframe (red, blue, and green)
@@ -441,7 +441,7 @@ def value_updated(self, item, interpolation=-1, value=None, interpolation_detail
441441

442442
# Update clip attribute
443443
if property_key in clip_data:
444-
log_id = f"{clip_id}/{object_id}" if object_id else clip_id
444+
log_id = "{}/{}".format(clip_id, object_id) if object_id else clip_id
445445
log.debug("%s: update property %s. %s", log_id, property_key, clip_data.get(property_key))
446446

447447
# Check the type of property (some are keyframe, and some are not)

0 commit comments

Comments
 (0)