Cleanup: pep8
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Oct 2019 23:22:09 +0000 (10:22 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Oct 2019 23:26:37 +0000 (10:26 +1100)
release/scripts/startup/bl_operators/uvcalc_lightmap.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_data_curve.py
release/scripts/startup/bl_ui/properties_data_mesh.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
release/scripts/startup/bl_ui/properties_paint_common.py
release/scripts/startup/bl_ui/space_filebrowser.py
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
release/scripts/startup/bl_ui/space_view3d.py

index 2b20754a995a973a08da7f40fd67e9c0c41a461d..2befb7c73e25fd2fbf49a3c99ce304bf1460baea 100644 (file)
@@ -565,7 +565,12 @@ def unwrap(operator, context, **kwargs):
         bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
 
     # define list of meshes
-    meshes = list({me for obj in context.selected_objects if obj.type == 'MESH' for me in (obj.data,) if me.polygons and me.library is None})
+    meshes = list({
+        me for obj in context.selected_objects
+        if obj.type == 'MESH'
+        for me in (obj.data,)
+        if me.polygons and me.library is None
+    })
 
     if not meshes:
         operator.report({'ERROR'}, "No mesh object")
index 905798b51559b2e23f0996fb8665754ec13ea580..5a0529b5e393e3d7b771a510f170f34a597ba59f 100644 (file)
@@ -1999,7 +1999,6 @@ class WM_OT_batch_rename(Operator):
                     descr,
                 )
 
-
         return data
 
     @staticmethod
index b7c566f23daf5fdfe216c56d82d5fdd60258476a..d1975919d7eb6b51cef29b8bb86a8b74945b4f79 100644 (file)
@@ -348,7 +348,6 @@ class DATA_PT_font(CurveButtonsPanelText, Panel):
         row.label(text="Bold & Italic")
         row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink")
 
-
         if mode == 'EDIT_TEXT':
             layout.separator()
 
index 51f240072716b14b264ceaa017141658d717fddd..72e9f710e9d8fa6338cafcf1e961e6ff803e40fd 100644 (file)
@@ -485,6 +485,7 @@ class DATA_PT_remesh(MeshButtonsPanel, Panel):
         else:
             col.operator("object.quadriflow_remesh", text="QuadriFlow Remesh")
 
+
 class DATA_PT_customdata(MeshButtonsPanel, Panel):
     bl_label = "Geometry Data"
     bl_options = {'DEFAULT_CLOSED'}
index ca9c518f443f92dd5ff3a977b0800592538963aa..e545ee971d8b60f7b8936313bd84429761b8ed10 100644 (file)
@@ -950,6 +950,7 @@ class GPENCIL_UL_layer(UIList):
                 icon_value=icon,
             )
 
+
 class GreasePencilSimplifyPanel:
 
     def draw_header(self, context):
@@ -977,6 +978,7 @@ class GreasePencilSimplifyPanel:
         sub.active = rd.simplify_gpencil_view_fill
         sub.prop(rd, "simplify_gpencil_remove_lines", text="Lines")
 
+
 classes = (
     GPENCIL_MT_pie_tool_palette,
     GPENCIL_MT_pie_settings_palette,
index c201ccbe7f8f718e667da53bef69bc86ef524446..83f7cb710fffa078039a1b8467b3556069de0066 100644 (file)
@@ -419,7 +419,7 @@ def brush_basic_gpencil_paint_settings(layout, _context, brush, tool, *, compact
         row = layout.row(align=True)
         row.prop(gp_settings, "pen_strength", slider=True)
         row.prop(gp_settings, "use_strength_pressure", text="", icon='STYLUS_PRESSURE')
-    
+
     if tool.idname in {"builtin.arc", "builtin.curve", "builtin.line", "builtin.box", "builtin.circle"}:
         settings = _context.tool_settings.gpencil_sculpt
         if is_toolbar:
index e1097e8d51229960b48d575eebd992f671f3e3ef..181032e4d96e53660582e2149aaa36f8eb09d3ae 100644 (file)
@@ -158,7 +158,8 @@ class FILEBROWSER_PT_filter(Panel):
 
 
 def panel_poll_is_upper_region(region):
-    # The upper region is left-aligned, the lower is split into it then. Note that after "Flip Regions" it's right-aligned.
+    # The upper region is left-aligned, the lower is split into it then.
+    # Note that after "Flip Regions" it's right-aligned.
     return region.alignment in {'LEFT', 'RIGHT'}
 
 
index 112151d3478d19326a22e8227231c5db4bf1039c..890250d3daf343689976fd50d3d99d5a0705427c 100644 (file)
@@ -1392,7 +1392,6 @@ class _defs_gpencil_paint:
             keymap=(),
         )
 
-
     @ToolDef.from_fn
     def eyedropper():
         return dict(
@@ -1404,6 +1403,7 @@ class _defs_gpencil_paint:
             keymap=(),
         )
 
+
 class _defs_gpencil_edit:
     @ToolDef.from_fn
     def bend():
index 5ad1dec9480ba214c886cf4640477f009d3efc4e..d9b6ed0c9163a9c1b7935a4a204e27c74d76cbf7 100644 (file)
@@ -5058,7 +5058,7 @@ class VIEW3D_PT_collections(Panel):
                 subrow.active = collection.is_visible  # Parent collection runtime visibility
                 subrow.prop(child, "hide_viewport", text="", emboss=False)
             else:
-                subrow.active = collection.visible_get() # Parent collection runtime visibility
+                subrow.active = collection.visible_get()  # Parent collection runtime visibility
                 icon = 'HIDE_OFF' if child.visible_get() else 'HIDE_ON'
                 props = subrow.operator("object.hide_collection", text="", icon=icon, emboss=False)
                 props.collection_index = index