[Bf-blender-cvs] [b1f40955d9a] master: Cleanup: incorrect __contains__ comparison, long line

Campbell Barton noreply at git.blender.org
Sat Feb 15 00:41:04 CET 2020


Commit: b1f40955d9a9c205581bd8fff3ed04320dbe95da
Author: Campbell Barton
Date:   Sat Feb 15 09:49:22 2020 +1100
Branches: master
https://developer.blender.org/rBb1f40955d9a9c205581bd8fff3ed04320dbe95da

Cleanup: incorrect __contains__ comparison, long line

===================================================================

M	release/scripts/startup/bl_ui/space_node.py
M	release/scripts/startup/bl_ui/space_sequencer.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index 55ec8306e16..8fe758b8bf6 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -530,7 +530,12 @@ class NODE_PT_active_node_properties(Panel):
             layout.label(text="Inputs:")
             for socket in value_inputs:
                 row = layout.row()
-                socket.draw(context, row, node, iface_(socket.label if socket.label else socket.name, socket.bl_rna.translation_context))
+                socket.draw(
+                    context,
+                    row,
+                    node,
+                    iface_(socket.label if socket.label else socket.name, socket.bl_rna.translation_context),
+                )
 
 
 class NODE_PT_texture_mapping(Panel):
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index af0c23e7892..f05a0e18eed 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -842,7 +842,7 @@ class SEQUENCER_MT_context_menu(Menu):
             }:
                 layout.separator()
                 layout.menu("SEQUENCER_MT_strip_effect")
-            elif strip_type in 'MOVIE':
+            elif strip_type == 'MOVIE':
                 layout.separator()
                 layout.menu("SEQUENCER_MT_strip_movie")
             elif strip_type == 'IMAGE':



More information about the Bf-blender-cvs mailing list