Cleanup: f-string use
authorCampbell Barton <ideasman42@gmail.com>
Sat, 14 Jul 2018 07:32:52 +0000 (09:32 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 14 Jul 2018 07:32:52 +0000 (09:32 +0200)
release/scripts/startup/bl_ui/space_outliner.py
release/scripts/startup/bl_ui/space_toolsystem_common.py

index 97fae2690fd5d504b72c047a3a6d2992892c108c..8f722c4d3ce4123e154f80c25440eab3c4f11a7d 100644 (file)
@@ -220,8 +220,8 @@ class OUTLINER_MT_object(Menu):
 
         if object_mode in {'EDIT', 'POSE'}:
             name = bpy.types.Object.bl_rna.properties["mode"].enum_items[object_mode].name
-            layout.operator("outliner.object_operation", text=f"{name} Set").type = 'OBJECT_MODE_ENTER'
-            layout.operator("outliner.object_operation", text=f"{name} Clear").type = 'OBJECT_MODE_EXIT'
+            layout.operator("outliner.object_operation", text=f"{name:s} Set").type = 'OBJECT_MODE_ENTER'
+            layout.operator("outliner.object_operation", text=f"{name:s} Clear").type = 'OBJECT_MODE_EXIT'
             del name
 
             layout.separator()
index ffd95ec7c64d8c6a29e311aafc3d8cdccc1d7ba0..9cc57bc2c873df2aa8ae432237a7b67f86751481 100644 (file)
@@ -293,7 +293,7 @@ class ToolSelectPanelHelper:
     def _km_action_simple(cls, kc, context_mode, text, keymap_fn):
         if context_mode is None:
             context_mode = "All"
-        km_idname = f"{cls.keymap_prefix} {context_mode}, {text}"
+        km_idname = f"{cls.keymap_prefix:s} {context_mode:s}, {text:s}"
         km = kc.keymaps.get(km_idname)
         if km is None:
             km = kc.keymaps.new(km_idname, space_type=cls.bl_space_type, region_type='WINDOW')