pep8 compliance
authorCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jun 2011 17:17:51 +0000 (17:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 21 Jun 2011 17:17:51 +0000 (17:17 +0000)
17 files changed:
build_files/buildbot/master.cfg
build_files/buildbot/master_unpack.py
build_files/buildbot/slave_pack.py
build_files/cmake/cmake_consistency_check.py
doc/python_api/examples/bpy.props.4.py
release/scripts/modules/bpy_extras/image_utils.py
release/scripts/modules/bpy_extras/mesh_utils.py
release/scripts/modules/bpy_extras/view3d_utils.py
release/scripts/startup/bl_operators/nla.py
release/scripts/startup/bl_operators/object_quick_effects.py
release/scripts/startup/bl_operators/uvcalc_smart_project.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_data_metaball.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_object_constraint.py
source/blender/python/intern/bpy_interface.c

index b4d69a289eecd0d7f83fbe78109e30985f7345a1..fd712f1b832c8c58c70ecc41f76e6bfb651d11c8 100644 (file)
@@ -74,6 +74,7 @@ def svn_step(branch=''):
     else:
         return SVN(baseURL='https://svn.blender.org/svnroot/bf-blender/%%BRANCH%%/blender', mode='update', defaultBranch='trunk', workdir='blender')
 
+
 def lib_svn_step(dir):
     return SVN(name='lib svn', baseURL='https://svn.blender.org/svnroot/bf-blender/%%BRANCH%%/lib/' + dir, mode='update', defaultBranch='trunk', workdir='lib/' + dir)
 
index 3e1dec726e5035538134f7bdd7cf88310fd6f452..ad7c09933c69ad2058d4b0dcc366733ba988c28b 100644 (file)
@@ -64,10 +64,11 @@ def get_platform(filename):
 
     return '-'.join(platform_tokens)
 
+
 def get_branch(filename):
     tokens = filename.split("-")
     branch = ""
-    
+
     for token in tokens:
         if branch == "":
             branch = token
index cdc7cff32754a13082daa205aafc98bdbf586e51..4c19b723fc8635061ab12d6bf0c71bb2cedecab4 100644 (file)
@@ -36,7 +36,7 @@ builder = sys.argv[1]
 branch = ''
 
 if len(sys.argv) >= 3:
-       branch = sys.argv[2]
+    branch = sys.argv[2]
 
 # scons does own packaging
 if builder.find('scons') != -1:
index 9a5e3553ea2a180fc14bec4c38296fd5c9a6d182..ebcc75ade2b4ee323b0368f5138605ef77717818 100755 (executable)
@@ -32,7 +32,7 @@ IGNORE = (
     "/decimation/intern/future/",
     "/TerraplayNetwork/",
     "/ik_glut_test/",
-    
+
     # specific source files
     "extern/Eigen2/Eigen/src/Cholesky/CholeskyInstantiations.cpp",
     "extern/Eigen2/Eigen/src/Core/CoreInstantiations.cpp",
@@ -65,10 +65,7 @@ IGNORE = (
     "extern/eltopo/common/meshes/meshloader.h",
     "extern/eltopo/eltopo3d/broadphase_blenderbvh.h"
     )
-    
-    
 
-    
 
 import os
 from os.path import join, dirname, normpath, abspath, splitext
index d44f8947cb438aa9a5c632efb0afc79aa77825ad..2b44d94f72a76d63f8e89adf9221e1b413a9bbdd 100644 (file)
@@ -10,6 +10,7 @@ All properties define update functions except for CollectionProperty.
 
 import bpy
 
+
 def update_func(self, context):
     print("my test function", self)
 
index f45f9c6f2258760a05d146fc8888485e53d67c31..551940b26e2ca88f44b7f577cdaa8b0359c5a0fb 100644 (file)
@@ -22,6 +22,7 @@ __all__ = (
     "load_image",
 )
 
+
 # limited replacement for BPyImage.comprehensiveImageLoad
 def load_image(imagepath,
                dirname="",
index e026910fb438142601fd5acc8a2c4c6be75c4dc6..2062fe4485ffd789d2c32c1d6624364ed31bc481 100644 (file)
@@ -27,6 +27,7 @@ __all__ = (
     "ngon_tesselate",
 )
 
+
 def mesh_linked_faces(mesh):
     """
     Splits the mesh into connected faces, use this for seperating cubes from
index f2f2e53240b3a72b13721527a850f847e41e28b5..01ac543aec7ae416a49248b728e55607611e55c0 100644 (file)
@@ -25,6 +25,7 @@ __all__ = (
     "location_3d_to_region_2d",
 )
 
+
 def region_2d_to_vector_3d(region, rv3d, coord):
     """
     Return a direction vector from the viewport at the spesific 2d region
@@ -48,7 +49,7 @@ def region_2d_to_vector_3d(region, rv3d, coord):
         out = Vector(((2.0 * coord[0] / region.width) - 1.0,
                       (2.0 * coord[1] / region.height) - 1.0,
                       -0.5
-                    ))        
+                    ))
 
         w = (out[0] * persinv[0][3]) + \
             (out[1] * persinv[1][3]) + \
index 7cbdaa3ddbfe95207c197b3b05f2d58765beb65b..469e9015e62ebb77a0cc1d71d9857ab8aa7837eb 100644 (file)
@@ -103,7 +103,7 @@ def bake(frame_start,
 
     # -------------------------------------------------------------------------
     # Collect transformations
-    
+
     # could speed this up by applying steps here too...
     for f in frame_range:
         scene.frame_set(f)
index 2ecca8ab168bb75beecca9423df72b494206956d..a8bb3227b3c378eceaab9dc8c9baac6831c55a8a 100644 (file)
@@ -244,6 +244,7 @@ class QuickExplode(bpy.types.Operator):
         self.frame_end = self.frame_start + self.frame_duration
         return self.execute(context)
 
+
 def obj_bb_minmax(obj, min_co, max_co):
     for i in range(0, 8):
         bb_vec = Vector(obj.bound_box[i]) * obj.matrix_world
index 4f5b1d8b2337038fa0505ab04e004c358e1b04fd..c70b90719856dc50de1b7bdd58911585d66bbea6 100644 (file)
@@ -16,7 +16,7 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-# <pep8 compliant>
+# TODO <pep8 compliant>
 
 from mathutils import Matrix, Vector, geometry
 import bpy
index cb26b093601cf3b4e75eef78b27521f738dc6cb9..00d8d08852ef6a5950610b5c61440be1e8c6ba91 100644 (file)
@@ -112,22 +112,23 @@ class DATA_PT_shape_curve(CurveButtonsPanel, bpy.types.Panel):
             sub.prop(curve, "use_fill_front")
             sub.prop(curve, "use_fill_back")
             col.prop(curve, "use_fill_deform", text="Fill Deformed")
-            
+
+
 class DATA_PT_curve_texture_space(CurveButtonsPanel, bpy.types.Panel):
     bl_label = "Texture Space"
     bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
-    
+
     def draw(self, context):
         layout = self.layout
-        
+
         ob = context.object
         curve = context.curve
 
         row = layout.row()
         row.prop(curve, "use_auto_texspace")
         row.prop(curve, "use_uv_as_generated")
-        
+
         row = layout.row()
         row.column().prop(curve, "texspace_location", text="Location")
         row.column().prop(curve, "texspace_size", text="Size")
index e2c8841317793c2ef9aa706d81fe2ffe96bc91ba..8c966825aeee5397fa61507806858861b73ed02d 100644 (file)
@@ -118,6 +118,7 @@ class DATA_PT_texture_space(MeshButtonsPanel, bpy.types.Panel):
         row.column().prop(mesh, "texspace_location", text="Location")
         row.column().prop(mesh, "texspace_size", text="Size")
 
+
 class DATA_PT_vertex_groups(MeshButtonsPanel, bpy.types.Panel):
     bl_label = "Vertex Groups"
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
index dad308c905815829acb2374cedd21c9c1154b9b8..6dda99bc37f710db39dd4bc64d7138dbab129bc4 100644 (file)
@@ -70,20 +70,20 @@ class DATA_PT_metaball(DataButtonsPanel, bpy.types.Panel):
 
         layout.label(text="Update:")
         layout.prop(mball, "update_method", expand=True)
-        
-        
+
+
 class DATA_PT_mball_texture_space(DataButtonsPanel, bpy.types.Panel):
     bl_label = "Texture Space"
     bl_options = {'DEFAULT_CLOSED'}
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
-    
+
     def draw(self, context):
         layout = self.layout
 
         mball = context.meta_ball
 
         layout.prop(mball, "use_auto_texspace")
-        
+
         row = layout.row()
         row.column().prop(mball, "texspace_location", text="Location")
         row.column().prop(mball, "texspace_size", text="Size")
index 586675f2ca013e296701420253fc3ab07e484e94..ce6d0990f05293a8dc713e3db01cf2b7fb3039b2 100644 (file)
@@ -485,7 +485,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
 
         if md.wrap_method == 'PROJECT':
             split = layout.split(percentage=0.25)
-            
+
             col = split.column()
             col.label(text="Axis:")
             col.prop(md, "use_project_x")
index 03823ad7345ca68c2e88a4f8da343c30e9ac90d6..5f79dd3127ad15f9366776006df8533a5c90b4e6 100644 (file)
@@ -655,8 +655,8 @@ class ConstraintButtonsPanel():
         row = col.row()
         row.label(text="Source to Destination Mapping:")
 
-               # note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
-               # open it. Thus we are using the hardcoded value instead.
+        # note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
+        # open it. Thus we are using the hardcoded value instead.
         row = col.row()
         row.prop(con, "map_to_x_from", expand=False, text="")
         row.label(text=" %s    X" % chr(187))
index 8017720671e01620def9e56a0efe572ccf93eebd..0001c1c74b92c9d10eacf6996c6bccca858a2988 100644 (file)
@@ -200,7 +200,7 @@ void BPY_python_start(int argc, const char **argv)
        /* allow to use our own included python */
        PyC_SetHomePath(BLI_get_folder(BLENDER_SYSTEM_PYTHON, NULL));
 
-       /* Python 3.2 now looks for '2.57/python/include/python3.2d/pyconfig.h' to parse
+       /* Python 3.2 now looks for '2.58/python/include/python3.2d/pyconfig.h' to parse
         * from the 'sysconfig' module which is used by 'site', so for now disable site.
         * alternatively we could copy the file. */
        Py_NoSiteFlag= 1;