Cleanup: pep8
authorCampbell Barton <ideasman42@gmail.com>
Mon, 31 Aug 2015 17:51:50 +0000 (03:51 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 1 Sep 2015 03:03:38 +0000 (13:03 +1000)
intern/cycles/blender/addon/engine.py
release/scripts/modules/bl_previews_utils/bl_previews_render.py
release/scripts/modules/nodeitems_utils.py
release/scripts/modules/progress_report.py
release/scripts/startup/bl_operators/file.py
release/scripts/startup/bl_ui/properties_freestyle.py
release/scripts/startup/bl_ui/space_filebrowser.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_time.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index c936b900d75963e1942f2b724993f02b8ceb1889..2bfac3c6fa099519e6578ce529ec0e78d31d0e27 100644 (file)
@@ -49,6 +49,7 @@ def _workaround_buggy_drivers():
             print("Cycles: OpenGL driver known to be buggy, disabling OpenCL platform.")
             _cycles.opencl_disable()
 
+
 def init():
     import bpy
     import _cycles
index d53fc3ea8d13aa70e39d066cda240755d158f099..27922c6c5c5fb6c220b19fc93dbe9f88fe257ddf 100644 (file)
@@ -41,7 +41,7 @@ def rna_backup_gen(data, include_props=None, exclude_props=None, root=()):
     # only writable properties...
     for p in data.bl_rna.properties:
         pid = p.identifier
-        if pid in {'rna_type',}:
+        if pid in {'rna_type', }:
             continue
         path = root + (pid,)
         if include_props is not None and path not in include_props:
index 1cc9afc78cce5f530ec5f4b751a43902d45c4592..be6f031217c2122b82a081ed5fa987a62c7dcf00 100644 (file)
@@ -85,6 +85,7 @@ class NodeItemCustom:
 
 _node_categories = {}
 
+
 def register_node_categories(identifier, cat_list):
     if identifier in _node_categories:
         raise KeyError("Node categories list '%s' already registered" % identifier)
@@ -167,6 +168,7 @@ def unregister_node_categories(identifier=None):
             unregister_node_cat_types(cat_types)
         _node_categories.clear()
 
+
 def draw_node_categories_menu(self, context):
     for cats in _node_categories.values():
         cats[1](self, context)
index 0d1f4f2bef838f8e75c10f04cf5b467527fb82aa..578eb967feca35642cb9c50490a95fd7df51bd3d 100644 (file)
@@ -20,6 +20,7 @@
 
 import time
 
+
 class ProgressReport:
     """
     A basic 'progress report' using either simple prints in console, or WindowManager's 'progress' API.
index a6a6982e74651afb276ed276ae38faf9e9235faf..efcc7d5c65ea3d3955cc6b1b2b6c80621ba292f7 100644 (file)
@@ -28,6 +28,7 @@ from bpy.props import (
 
 # ########## Datablock previews... ##########
 
+
 class WM_OT_previews_batch_generate(Operator):
     """Generate selected .blend file's previews"""
     bl_idname = "wm.previews_batch_generate"
index f58a698d1941035a09c1c2c4c34d9577195fdd22..e0620447185961eb90a7757498a33ec5860f5569 100644 (file)
@@ -381,7 +381,6 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
                     message = "Enable Face Smoothness to use this modifier"
                     self.draw_modifier_box_error(col.box(), modifier, message)
 
-
     def draw_alpha_modifier(self, context, modifier):
         layout = self.layout
 
@@ -496,7 +495,6 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
                 row.prop(modifier, "angle_min")
                 row.prop(modifier, "angle_max")
 
-
             elif modifier.type == 'CURVATURE_3D':
                 self.draw_modifier_curve_common(box, modifier, False, False)
                 row = box.row(align=True)
@@ -510,7 +508,6 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
                     message = "Enable Face Smoothness to use this modifier"
                     self.draw_modifier_box_error(col.box(), modifier, message)
 
-
     def draw_geometry_modifier(self, context, modifier):
         layout = self.layout
 
@@ -611,7 +608,6 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
             elif modifier.type == 'SIMPLIFICATION':
                 box.prop(modifier, "tolerance")
 
-
     def draw(self, context):
         layout = self.layout
 
index 0b9c8474dd99c2a24a5fe4243c87dae40d7bd38e..ca695208a67a72db0474517fbf65f2724d0763ac 100644 (file)
@@ -69,8 +69,8 @@ class FILEBROWSER_HT_header(Header):
             row.prop(params, "use_filter_folder", text="")
 
             if params.filter_glob:
-                #if st.active_operator and hasattr(st.active_operator, "filter_glob"):
-                #    row.prop(params, "filter_glob", text="")
+                # if st.active_operator and hasattr(st.active_operator, "filter_glob"):
+                #     row.prop(params, "filter_glob", text="")
                 row.label(params.filter_glob)
             else:
                 row.prop(params, "use_filter_blender", text="")
index 53209a64848d2ad5d67d1e76b6413710837d0f69..c3024b252823e1039ff891357de018da6a9caf0f 100644 (file)
@@ -941,7 +941,7 @@ class IMAGE_PT_tools_imagepaint_symmetry(BrushButtonsPanel, Panel):
         row = col.row(align=True)
         row.prop(ipaint, "tile_x", text="X", toggle=True)
         row.prop(ipaint, "tile_y", text="Y", toggle=True)
+
 
 class IMAGE_PT_tools_brush_appearance(BrushButtonsPanel, Panel):
     bl_label = "Appearance"
index c4c4097315cbf1ba853e6759ef39d9c75eaad00e..817c28c6359ff438d7680e101978cf4446caeb00 100644 (file)
@@ -230,7 +230,7 @@ class TIME_MT_autokey(Menu):
 
 def marker_menu_generic(layout):
 
-    #layout.operator_context = 'EXEC_REGION_WIN'
+    # layout.operator_context = 'EXEC_REGION_WIN'
 
     layout.column()
     layout.operator("marker.add", "Add Marker")
index b936e2df165e45dea0bb29b05b98c76b80581106..bb0ad001c348179c67e9ae6598c0b0627939e189 100644 (file)
@@ -1998,7 +1998,7 @@ class VIEW3D_MT_pose_group(Menu):
 
             layout.separator()
 
-            #layout.operator_context = 'INVOKE_AREA'
+            # layout.operator_context = 'INVOKE_AREA'
             layout.operator("pose.group_unassign")
             layout.operator("pose.group_remove")
 
@@ -3292,7 +3292,7 @@ class VIEW3D_PT_background_image(Panel):
                         box.template_image(bg, "image", bg.image_user, compact=True)
                         has_bg = True
 
-                        if use_multiview and bg.view_axis in {'CAMERA','ALL'}:
+                        if use_multiview and bg.view_axis in {'CAMERA', 'ALL'}:
                             box.prop(bg.image, "use_multiview")
 
                             column = box.column()
index 2294e109f0c407dd5dc82a0846e8a983dbe8d2b4..a24dc494c30a183688c41b02a99dce448372f280 100644 (file)
@@ -1552,7 +1552,6 @@ class VIEW3D_PT_sculpt_symmetry(Panel, View3DPaintPanel):
         row.prop(sculpt, "lock_y", text="Y", toggle=True)
         row.prop(sculpt, "lock_z", text="Z", toggle=True)
 
-
         layout.label(text="Tiling:")
 
         row = layout.row(align=True)
@@ -1562,6 +1561,7 @@ class VIEW3D_PT_sculpt_symmetry(Panel, View3DPaintPanel):
 
         layout.column().prop(sculpt, "tile_offset", text="Tile Offset")
 
+
 class VIEW3D_PT_tools_brush_appearance(Panel, View3DPaintPanel):
     bl_category = "Options"
     bl_label = "Appearance"