Cleanup: minor change for f-string use

This commit is contained in:
Campbell Barton 2018-07-14 09:30:50 +02:00
parent 87535dd73d
commit 7d73ba904e
2 changed files with 3 additions and 3 deletions

View File

@ -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 = []

View File

@ -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: