Cleanup: add trailing commas to wrapped args
authorCampbell Barton <ideasman42@gmail.com>
Sat, 13 Apr 2019 10:44:34 +0000 (12:44 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 13 Apr 2019 10:45:02 +0000 (12:45 +0200)
release/scripts/startup/bl_ui/properties_physics_cloth.py
release/scripts/startup/bl_ui/properties_physics_common.py
release/scripts/startup/bl_ui/space_text.py
release/scripts/startup/bl_ui/space_topbar.py
release/scripts/startup/bl_ui/space_view3d.py

index 1fc3fcd..f3d84a7 100644 (file)
@@ -332,7 +332,7 @@ class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
         col = flow.column()
         col.prop_search(
             cloth, "vertex_group_structural_stiffness", ob, "vertex_groups",
-            text="Structural Group"
+            text="Structural Group",
         )
         col.prop(cloth, "tension_stiffness_max", text="Max Tension")
         col.prop(cloth, "compression_stiffness_max", text="Max Compression")
@@ -342,7 +342,7 @@ class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
         col = flow.column()
         col.prop_search(
             cloth, "vertex_group_shear_stiffness", ob, "vertex_groups",
-            text="Shear Group"
+            text="Shear Group",
         )
         col.prop(cloth, "shear_stiffness_max", text="Max Shearing")
 
index 965b635..11a9b25 100644 (file)
@@ -39,13 +39,21 @@ def physics_add(self, layout, md, name, type, typeicon, toggles):
     row = layout.row(align=True)
     if md:
         row.context_pointer_set("modifier", md)
-        row.operator("object.modifier_remove", text=name, text_ctxt=i18n_contexts.default, icon='X')
+        row.operator(
+            "object.modifier_remove",
+            text=name,
+            text_ctxt=i18n_contexts.default,
+            icon='X',
+        )
         if toggles:
             row.prop(md, "show_render", text="")
             row.prop(md, "show_viewport", text="")
     else:
         row.operator(
-            "object.modifier_add", text=name, text_ctxt=i18n_contexts.default, icon='BLANK1'
+            "object.modifier_add",
+            text=name,
+            text_ctxt=i18n_contexts.default,
+            icon='BLANK1',
         ).type = type
 
 
index b62e2d7..07184c8 100644 (file)
@@ -95,7 +95,7 @@ class TEXT_HT_footer(Header):
                 row.label(
                     text="Text: External"
                     if text.library
-                    else "Text: Internal"
+                    else "Text: Internal",
                 )
 
 
index 2e95ccd..7598c69 100644 (file)
@@ -361,7 +361,7 @@ class _draw_left_context_mode:
                 sub.active = settings.use_thickness_curve
                 sub.popover(
                     panel="TOPBAR_PT_gpencil_primitive",
-                    text="Thickness Profile"
+                    text="Thickness Profile",
                 )
 
             if brush.gpencil_tool == 'FILL':
@@ -370,7 +370,7 @@ class _draw_left_context_mode:
                 sub = row.row(align=True)
                 sub.popover(
                     panel="TOPBAR_PT_gpencil_fill",
-                    text="Fill Options"
+                    text="Fill Options",
                 )
 
         @staticmethod
@@ -921,7 +921,7 @@ class TOPBAR_MT_help(Menu):
             "wm.url_open", text="Blender Store", icon='URL',
         ).url = "https://store.blender.org"
         layout.operator(
-            "wm.url_open", text="Development Fund", icon='URL'
+            "wm.url_open", text="Development Fund", icon='URL',
         ).url = "https://fund.blender.org"
         layout.operator(
             "wm.url_open", text="Donate", icon='URL',
index f2ed792..950dcc7 100644 (file)
@@ -113,7 +113,7 @@ class VIEW3D_HT_header(Header):
                 sub.active = gpd.use_multiedit
                 sub.popover(
                     panel="VIEW3D_PT_gpencil_multi_frame",
-                    text="Multiframe"
+                    text="Multiframe",
                 )
 
             if gpd.use_stroke_edit_mode:
@@ -122,7 +122,7 @@ class VIEW3D_HT_header(Header):
 
                 row.popover(
                     panel="VIEW3D_PT_tools_grease_pencil_interpolate",
-                    text="Interpolate"
+                    text="Interpolate",
                 )
 
         VIEW3D_MT_editor_menus.draw_collapsible(context, layout)
@@ -252,7 +252,7 @@ class VIEW3D_HT_header(Header):
                 sub.active = settings.use_guide
                 sub.popover(
                     panel="VIEW3D_PT_gpencil_guide",
-                    text="Guides"
+                    text="Guides",
                 )
 
         layout.separator_spacer()
@@ -4342,7 +4342,7 @@ class VIEW3D_PT_view3d_lock(Panel):
                     view, "lock_bone", lock_object.data,
                     "edit_bones" if lock_object.mode == 'EDIT'
                     else "bones",
-                    text=""
+                    text="",
                 )
         else:
             subcol.prop(view, "lock_cursor", text="Lock to 3D Cursor")
@@ -4671,7 +4671,7 @@ class VIEW3D_PT_shading_options(Panel):
             sub.popover(
                 panel="VIEW3D_PT_shading_options_shadow",
                 icon='PREFERENCES',
-                text=""
+                text="",
             )
 
             col = layout.column()
@@ -4691,7 +4691,7 @@ class VIEW3D_PT_shading_options(Panel):
                     sub.popover(
                         panel="VIEW3D_PT_shading_options_ssao",
                         icon='PREFERENCES',
-                        text=""
+                        text="",
                     )
 
                 if shading.cavity_type in {'SCREEN', 'BOTH'}: