Cleanup: remove redundant string formatting
This commit is contained in:
parent
0660fa6971
commit
d5f837a8ee
@ -332,7 +332,7 @@ class InfoPropertyRNA:
|
||||
self.default_str = "\"%s\"" % self.default
|
||||
elif self.type == "enum":
|
||||
if self.is_enum_flag:
|
||||
# self.default_str = "%r" % self.default # repr or set()
|
||||
# self.default_str = repr(self.default) # repr or set()
|
||||
self.default_str = "{%s}" % repr(list(sorted(self.default)))[1:-1]
|
||||
else:
|
||||
self.default_str = "'%s'" % self.default
|
||||
|
@ -166,7 +166,7 @@ class PlayRenderedAnim(Operator):
|
||||
opts = ["-fps", str(rd.fps), "-play"]
|
||||
if scene.use_preview_range:
|
||||
opts += [
|
||||
"%s" % file.replace("#", "", file.count('#') - 1),
|
||||
file.replace("#", "", file.count('#') - 1),
|
||||
"%d-%d" % (frame_start, frame_end),
|
||||
]
|
||||
else:
|
||||
|
@ -107,7 +107,7 @@ class MeshExportTest4(AbstractColladaTest):
|
||||
outfile = tempdir / Path("%s_out.dae" % test)
|
||||
|
||||
bpy.ops.wm.collada_export(
|
||||
filepath="%s" % str(outfile),
|
||||
filepath=str(outfile),
|
||||
check_existing=True,
|
||||
filemode=8,
|
||||
display_type='DEFAULT',
|
||||
@ -151,7 +151,7 @@ class MeshExportTest3(AbstractColladaTest):
|
||||
outfile = tempdir / Path("%s_out.dae" % test)
|
||||
|
||||
bpy.ops.wm.collada_export(
|
||||
filepath="%s" % str(outfile),
|
||||
filepath=str(outfile),
|
||||
check_existing=True,
|
||||
filemode=8,
|
||||
display_type='DEFAULT',
|
||||
@ -195,7 +195,7 @@ class MeshExportTest2(AbstractColladaTest):
|
||||
outfile = tempdir / Path("%s_out.dae" % test)
|
||||
|
||||
bpy.ops.wm.collada_export(
|
||||
filepath="%s" % str(outfile),
|
||||
filepath=str(outfile),
|
||||
check_existing=True,
|
||||
filemode=8,
|
||||
display_type='DEFAULT',
|
||||
@ -239,7 +239,7 @@ class MeshExportTest1(AbstractColladaTest):
|
||||
outfile = tempdir / Path("%s_out.dae" % test)
|
||||
|
||||
bpy.ops.wm.collada_export(
|
||||
filepath="%s" % str(outfile),
|
||||
filepath=str(outfile),
|
||||
check_existing=True,
|
||||
filemode=8,
|
||||
display_type='DEFAULT',
|
||||
|
@ -107,7 +107,7 @@ class MeshExportTest(AbstractColladaTest):
|
||||
outfile = tempdir / Path("%s_out.dae" % test)
|
||||
|
||||
bpy.ops.wm.collada_export(
|
||||
filepath="%s" % str(outfile),
|
||||
filepath=str(outfile),
|
||||
check_existing=True,
|
||||
filemode=8,
|
||||
display_type="DEFAULT",
|
||||
|
@ -1638,7 +1638,7 @@ class edit_generators:
|
||||
):
|
||||
edits.append(Edit(
|
||||
span=match.span(),
|
||||
content='%s' % match.group(2),
|
||||
content=match.group(2),
|
||||
content_fail='__ALWAYS_FAIL__',
|
||||
))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user