[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43879] trunk/blender: Code Cleanup: pep8 edits
Campbell Barton
ideasman42 at gmail.com
Sat Feb 4 12:10:50 CET 2012
Revision: 43879
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43879
Author: campbellbarton
Date: 2012-02-04 11:10:41 +0000 (Sat, 04 Feb 2012)
Log Message:
-----------
Code Cleanup: pep8 edits
Modified Paths:
--------------
trunk/blender/build_files/cmake/cmake_static_check_cppcheck.py
trunk/blender/intern/cycles/blender/addon/ui.py
trunk/blender/release/scripts/startup/bl_operators/object.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py
trunk/blender/release/scripts/startup/bl_ui/space_clip.py
trunk/blender/release/scripts/startup/bl_ui/space_image.py
trunk/blender/release/scripts/startup/bl_ui/space_node.py
trunk/blender/source/tests/bl_run_operators.py
Modified: trunk/blender/build_files/cmake/cmake_static_check_cppcheck.py
===================================================================
--- trunk/blender/build_files/cmake/cmake_static_check_cppcheck.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/build_files/cmake/cmake_static_check_cppcheck.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -37,7 +37,7 @@
CHECKER_ARGS = [
# not sure why this is needed, but it is.
"-I" + os.path.join(project_source_info.SOURCE_DIR, "extern", "glew", "include"),
- "--suppress=*:%s/extern/glew/include/GL/glew.h:241" % project_source_info.SOURCE_DIR,
+ "--suppress=*:%s/extern/glew/include/GL/glew.h:241" % project_source_info.SOURCE_DIR,
# "--max-configs=1", # speeds up execution
# "--check-config", # when includes are missing
# "--enable=all", # if you want sixty hundred pedantic suggestions
Modified: trunk/blender/intern/cycles/blender/addon/ui.py
===================================================================
--- trunk/blender/intern/cycles/blender/addon/ui.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/intern/cycles/blender/addon/ui.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -370,7 +370,7 @@
visibility = ob.cycles_visibility
flow = layout.column_flow()
-
+
flow.prop(visibility, "camera")
flow.prop(visibility, "diffuse")
flow.prop(visibility, "glossy")
Modified: trunk/blender/release/scripts/startup/bl_operators/object.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/object.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_operators/object.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -493,7 +493,8 @@
def execute(self, context):
ob_act = context.active_object
- objects = [ob for ob in context.selected_editable_objects if ob != ob_act]
+ objects = [ob for ob in context.selected_editable_objects
+ if ob != ob_act]
if 1: # swap from/to, means we cant copy to many at once.
if len(objects) != 1:
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -814,12 +814,12 @@
def REMESH(self, layout, ob, md):
layout.prop(md, "mode")
-
+
row = layout.row()
row.prop(md, "octree_depth")
row.prop(md, "scale")
- if md.mode == "SHARP":
+ if md.mode == 'SHARP':
layout.prop(md, "sharpness")
layout.prop(md, "remove_disconnected_pieces")
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -435,23 +435,23 @@
self.target_template(layout, con)
split = layout.split()
-
+
col = split.column()
col.label(text="From Target:")
col.prop(con, "transform_channel", text="")
col.prop(con, "target_space", text="")
-
+
col = split.column()
col.label(text="To Action:")
col.prop(con, "action", text="")
-
+
split = layout.split()
-
+
col = split.column(align=True)
col.label(text="Target Range:")
col.prop(con, "min", text="Min")
col.prop(con, "max", text="Max")
-
+
col = split.column(align=True)
col.label(text="Action Range:")
col.prop(con, "frame_start", text="Start")
Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -128,9 +128,12 @@
col.separator()
row = col.row(align=True)
- row.prop(settings, "use_default_red_channel", text="R", toggle=True)
- row.prop(settings, "use_default_green_channel", text="G", toggle=True)
- row.prop(settings, "use_default_blue_channel", text="B", toggle=True)
+ row.prop(settings, "use_default_red_channel",
+ text="R", toggle=True)
+ row.prop(settings, "use_default_green_channel",
+ text="G", toggle=True)
+ row.prop(settings, "use_default_blue_channel",
+ text="B", toggle=True)
col.separator()
@@ -155,7 +158,8 @@
col.prop(settings, "default_pattern_match", text="")
col.separator()
- col.operator('clip.track_settings_as_default', text="Copy From Active Track")
+ col.operator('clip.track_settings_as_default',
+ text="Copy From Active Track")
class CLIP_PT_tools_tracking(Panel):
Modified: trunk/blender/release/scripts/startup/bl_ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_image.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_ui/space_image.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -21,6 +21,7 @@
from bpy.types import Header, Menu, Panel
from .properties_paint_common import UnifiedPaintPanel
+
class ImagePaintPanel(UnifiedPaintPanel):
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'UI'
@@ -677,7 +678,7 @@
row = col.row(align=True)
self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
-
+
row = col.row(align=True)
row.prop(brush, "jitter", slider=True)
row.prop(brush, "use_pressure_jitter", toggle=True, text="")
@@ -826,7 +827,7 @@
row = col.row(align=True)
self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
-
+
split = layout.split()
col = split.column()
Modified: trunk/blender/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_node.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/release/scripts/startup/bl_ui/space_node.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -58,7 +58,7 @@
# Don't show "Use Nodes" Button when Engine is BI for Lamps
if snode_id and not (scene.render.use_shading_nodes == 0 and ob.type == 'LAMP'):
layout.prop(snode_id, "use_nodes")
-
+
if snode.shader_type == 'WORLD':
layout.template_ID(scene, "world", new="world.new")
if snode_id:
Modified: trunk/blender/source/tests/bl_run_operators.py
===================================================================
--- trunk/blender/source/tests/bl_run_operators.py 2012-02-04 10:02:59 UTC (rev 43878)
+++ trunk/blender/source/tests/bl_run_operators.py 2012-02-04 11:10:41 UTC (rev 43879)
@@ -142,7 +142,7 @@
# non essential sanity check
bl_types = dir(bpy.types)
bl_types_unique = set(bl_types)
-
+
if len(bl_types) != len(bl_types_unique):
print("Error, found duplicates in 'bpy.types'")
for t in sorted(bl_types_unique):
More information about the Bf-blender-cvs
mailing list