Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-14 10:30:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-14 10:30:50 +0300
commit7d73ba904e3e69c1aa9b878aa2549581bb23e63b (patch)
treeb4347e673cce457e28824ad3404b385da87c63b9
parent87535dd73d3a2b76f7ede2448a2c471a40c79aaa (diff)
Cleanup: minor change for f-string use
-rw-r--r--release/scripts/startup/bl_operators/screen_play_rendered_anim.py2
-rw-r--r--release/scripts/startup/bl_ui/space_text.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
index 46cf07be0f5..27c8487eaa9 100644
--- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
+++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
@@ -149,7 +149,7 @@ class PlayRenderedAnim(Operator):
opts = [file, f"{scene.frame_start:d}-{scene.frame_end:d}"]
cmd.extend(opts)
elif preset == 'RV':
- opts = ["-fps", str(rd.fps), "-play", f"[ {file} ]"]
+ opts = ["-fps", str(rd.fps), "-play", f"[ {file:s} ]"]
cmd.extend(opts)
elif preset == 'MPLAYER':
opts = []
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index d0067012ffe..fc93956b14b 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -67,12 +67,12 @@ class TEXT_HT_header(Header):
if text.filepath:
if text.is_dirty:
row.label(
- iface_(f"File: *{text.filepath} (unsaved)"),
+ iface_(f"File: *{text.filepath:s} (unsaved)"),
translate=False,
)
else:
row.label(
- iface_(f"File: {text.filepath}"),
+ iface_(f"File: {text.filepath:s}"),
translate=False,
)
else: