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}"] opts = [file, f"{scene.frame_start:d}-{scene.frame_end:d}"]
cmd.extend(opts) cmd.extend(opts)
elif preset == 'RV': elif preset == 'RV':
opts = ["-fps", str(rd.fps), "-play", f"[ {file} ]"] opts = ["-fps", str(rd.fps), "-play", f"[ {file:s} ]"]
cmd.extend(opts) cmd.extend(opts)
elif preset == 'MPLAYER': elif preset == 'MPLAYER':
opts = [] opts = []

View File

@@ -67,12 +67,12 @@ class TEXT_HT_header(Header):
if text.filepath: if text.filepath:
if text.is_dirty: if text.is_dirty:
row.label( row.label(
iface_(f"File: *{text.filepath} (unsaved)"), iface_(f"File: *{text.filepath:s} (unsaved)"),
translate=False, translate=False,
) )
else: else:
row.label( row.label(
iface_(f"File: {text.filepath}"), iface_(f"File: {text.filepath:s}"),
translate=False, translate=False,
) )
else: else: