style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2012 22:17:19 +0000 (22:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jun 2012 22:17:19 +0000 (22:17 +0000)
39 files changed:
doc/python_api/examples/bpy.ops.2.py
doc/python_api/examples/bpy.ops.3.py
intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
release/datafiles/clkernelstoh.py
release/scripts/modules/addon_utils.py
release/scripts/modules/animsys_refactor.py
release/scripts/modules/blend_render_info.py
release/scripts/modules/bpy/__init__.py
release/scripts/modules/bpy/ops.py
release/scripts/modules/bpy/utils.py
release/scripts/modules/bpy_extras/image_utils.py
release/scripts/modules/bpy_extras/keyconfig_utils.py
release/scripts/modules/bpy_extras/mesh_utils.py
release/scripts/modules/bpyml_ui.py
release/scripts/modules/console_shell.py
release/scripts/modules/graphviz_export.py
release/scripts/modules/rna_info.py
release/scripts/modules/rna_xml.py
release/scripts/modules/sys_info.py
release/scripts/startup/bl_operators/anim.py
release/scripts/startup/bl_operators/console.py
release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_operators/presets.py
release/scripts/startup/bl_operators/uvcalc_smart_project.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_data_bone.py
release/scripts/startup/bl_ui/properties_data_curve.py
release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_object.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_scene.py
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_sequencer.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 86b7438888cfa961db65d4dca6ac8aef44084560..575d020a5a026a0e8b4fd581c96830c3e30d5a43 100644 (file)
@@ -15,4 +15,3 @@ you would pass {'active_object': object}.
 import bpy
 override = {'selected_bases': list(bpy.context.scene.object_bases)}
 bpy.ops.object.delete(override)
-
index 0b5bcafe5be5e9ade4ed38dc480a52023d32bc1e..7dec69cf5660ffaddaa435fd9969e8d8b80c07b1 100644 (file)
@@ -9,10 +9,9 @@ import bpy
 
 for window in bpy.context.window_manager.windows:
     screen = window.screen
-    
+
     for area in screen.areas:
         if area.type == 'VIEW_3D':
             override = {'window': window, 'screen': screen, 'area': area}
             bpy.ops.screen.screen_full_area(override)
             break
-
index b4673ec620643c147d7e430fca5f1964fcb2d087..e2f8209690116e54be976d2feb8a32bdb693d23a 100644 (file)
@@ -336,7 +336,7 @@ class CyclesCameraSettings(bpy.types.PropertyGroup):
         cls.fisheye_fov = FloatProperty(
                 name="Field of View",
                 description="Field of view for the fisheye lens",
-                min=0.1745, soft_max=2*math.pi, max=10.0*math.pi,
+                min=0.1745, soft_max=2 * math.pi, max=10.0 * math.pi,
                 subtype='ANGLE',
                 default=math.pi,
                 )
index bda8249c17e943b51ed75b4886f50888be4077bb..5234db5255ef5327d4dcd3cc47bc593f5d24d0db 100644 (file)
@@ -85,6 +85,7 @@ class CyclesRender_PT_sampling(CyclesButtonsPanel, Panel):
             sub.prop(cscene, "ao_samples", text="AO")
             sub.prop(cscene, "mesh_light_samples", text="Mesh Light")
 
+
 class CyclesRender_PT_light_paths(CyclesButtonsPanel, Panel):
     bl_label = "Light Paths"
     bl_options = {'DEFAULT_CLOSED'}
@@ -545,6 +546,7 @@ class CyclesLamp_PT_nodes(CyclesButtonsPanel, Panel):
         if not panel_node_draw(layout, lamp, 'OUTPUT_LAMP', 'Surface'):
             layout.prop(lamp, "color")
 
+
 class CyclesLamp_PT_spot(CyclesButtonsPanel, Panel):
     bl_label = "Spot Shape"
     bl_context = "data"
@@ -569,6 +571,7 @@ class CyclesLamp_PT_spot(CyclesButtonsPanel, Panel):
         col = split.column()
         col.prop(lamp, "show_cone")
 
+
 class CyclesWorld_PT_surface(CyclesButtonsPanel, Panel):
     bl_label = "Surface"
     bl_context = "world"
index 8fb5d4e6baef9a63584a77bc9049c63f33b69fe3..9c24c9e2d03408eef0b06aa469628ceff58b2e22 100755 (executable)
@@ -61,9 +61,9 @@ fpout.write("const char * clkernelstoh_%s = " % filename)
 
 lines = fpin.readlines()
 for line in lines:
-       fpout.write("\"")
-       fpout.write(line.rstrip())
-       fpout.write("\\n\" \\\n")
+    fpout.write("\"")
+    fpout.write(line.rstrip())
+    fpout.write("\\n\" \\\n")
 fpout.write("\"\\0\";\n")
 
 fpin.close()
index 695bb8cb6b626358c4f1cae09100644ac0bd8803..f90c04eda027e46c70c3fe0c9b657ff94798c1f6 100644 (file)
@@ -183,8 +183,8 @@ def modules(module_cache):
     del modules_stale
 
     mod_list = list(module_cache.values())
-    mod_list.sort(key=lambda mod: (mod.bl_info['category'],
-                                   mod.bl_info['name'],
+    mod_list.sort(key=lambda mod: (mod.bl_info["category"],
+                                   mod.bl_info["name"],
                                    ))
     return mod_list
 
index 097a0296a8ed19f0c105375cc122913b4913c737..06c449afd4165bed8477768aff75f8dd5d16d741 100644 (file)
@@ -887,9 +887,9 @@ if __name__ == "__main__":
     # Example, should be called externally
     # (class, from, to)
     replace_ls = [
-        ('AnimVizMotionPaths', 'frame_after', 'frame_after'),
-        ('AnimVizMotionPaths', 'frame_before', 'frame_before'),
-        ('AnimVizOnionSkinning', 'frame_after', 'frame_after'),
+        ("AnimVizMotionPaths", "frame_after", "frame_after"),
+        ("AnimVizMotionPaths", "frame_before", "frame_before"),
+        ("AnimVizOnionSkinning", "frame_after", "frame_after"),
     ]
 
     update_data_paths(replace_ls)
index 5a09f6646373d5f450e3b1af44808706cd90f0da..8762ea0e287392e80fe5266af52fa4bc2051e4b0 100755 (executable)
@@ -36,14 +36,14 @@ def read_blend_rend_chunk(path):
 
     import struct
 
-    blendfile = open(path, 'rb')
+    blendfile = open(path, "rb")
 
     head = blendfile.read(7)
 
     if head[0:2] == b'\x1f\x8b':  # gzip magic
         import gzip
         blendfile.close()
-        blendfile = gzip.open(path, 'rb')
+        blendfile = gzip.open(path, "rb")
         head = blendfile.read(7)
 
     if head != b'BLENDER':
@@ -80,7 +80,7 @@ def read_blend_rend_chunk(path):
         scene_name = scene_name[:scene_name.index(b'\0')]
 
         try:
-            scene_name = str(scene_name, 'utf8')
+            scene_name = str(scene_name, "utf8")
         except TypeError:
             pass
 
index 621484fc8964973198c2a7bfae51ca902f13916f..34b7a9ea7b651c5271066d9a20f533151ff78a18 100644 (file)
@@ -63,11 +63,11 @@ def main():
     #~ if "-d" in sys.argv: # Enable this to measure start up speed
     if 0:
         import cProfile
-        cProfile.run('import bpy; bpy.utils.load_scripts()', 'blender.prof')
+        cProfile.run("import bpy; bpy.utils.load_scripts()", "blender.prof")
 
         import pstats
-        p = pstats.Stats('blender.prof')
-        p.sort_stats('cumulative').print_stats(100)
+        p = pstats.Stats("blender.prof")
+        p.sort_stats("cumulative").print_stats(100)
 
     else:
         utils.load_scripts()
index d01b706cc37ae9a0d0e8c5c883a64c4b3393617b..056fcdb519e054fcd82996643c59b2c546b8ed46 100644 (file)
@@ -74,7 +74,7 @@ class BPyOpsSubMod(object):
 
     eg. bpy.ops.object
     '''
-    __keys__ = ('module',)
+    __keys__ = ("module",)
 
     def __init__(self, module):
         self.module = module
@@ -111,7 +111,7 @@ class BPyOpsSubModOp(object):
     eg. bpy.ops.object.somefunc
     '''
 
-    __keys__ = ('module', 'func')
+    __keys__ = ("module", "func")
 
     def _get_doc(self):
         return op_as_string(self.idname())
index 4e8179775d59f0f99af086cf4e1ac1cc9371791d..da12975e4a6f9794884cf1cddeeebeac8188a0b3 100644 (file)
@@ -489,7 +489,7 @@ def keyconfig_set(filepath):
 
     try:
         keyfile = open(filepath)
-        exec(compile(keyfile.read(), filepath, 'exec'), {"__file__": filepath})
+        exec(compile(keyfile.read(), filepath, "exec"), {"__file__": filepath})
         keyfile.close()
     except:
         import traceback
index c21b750fd1f870c430734f19f868998977d4b010..36994d3fddd6c249011cb40f0ed553bd559b677f 100644 (file)
@@ -71,7 +71,7 @@ def load_image(imagepath,
     def _image_load_placeholder(path):
         name = bpy.path.basename(path)
         if type(name) == bytes:
-            name = name.decode('utf-8', "replace")
+            name = name.decode("utf-8", "replace")
         image = bpy.data.images.new(name, 128, 128)
         # allow the path to be resolved later
         image.filepath = path
index f8b0abd03ea3849644f3493c6d87c1791cfdd50f..dbff90c2447a83a6f929f24987c58657537b814c 100644 (file)
@@ -171,7 +171,7 @@ def keyconfig_export(wm, kc, filepath):
     # First add all user_modified keymaps (found in keyconfigs.user.keymaps list),
     # then add all remaining keymaps from the currently active custom keyconfig.
     #
-    # This will create a final list of keymaps that can be used as a 'diff' against
+    # This will create a final list of keymaps that can be used as a "diff" against
     # the default blender keyconfig, recreating the current setup from a fresh blender
     # without needing to export keymaps which haven't been edited.
 
index 3ce45154765ce0e815cbd4d53daf7f1b4a233b48..fa83b1861d209682b7ea652a19a2883112272596 100644 (file)
@@ -414,7 +414,7 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
 
         fill = tessellate_polygon([[v[0] for v in loop] for loop in loop_list])
         #draw_loops(loop_list)
-        #raise 'done loop'
+        #raise Exception("done loop")
         # map to original indices
         fill = [[vert_map[i] for i in reversed(f)] for f in fill]
 
index 4828b3649d3a4b443415fbe536bf0abe227712f6..a7e2e7bc04ae1db31625857dc3d131662aca1b3f 100644 (file)
@@ -73,7 +73,7 @@ def _call_recursive(context, base, py_node):
             value = eval(value, {"context": _bpy.context})
             setattr(base, py_node[TAG], value)
         else:
-            value = py_node[ARGS]['value']  # have to have this
+            value = py_node[ARGS]["value"]  # have to have this
             setattr(base, py_node[TAG], value)
     else:
         args = _parse_rna_args(base, py_node)
index 772d46c8bf38b30b598816b9418ff229cdabf804..c27524ffe44bb2e0bd107f2e14e313ad421d3e8e 100644 (file)
@@ -20,7 +20,7 @@
 import os
 import bpy
 
-language_id = 'shell'
+language_id = "shell"
 
 
 def add_scrollback(text, text_type):
index b60952a2f885e5fd6e53d294444eaf8bab74fe48..88f8b15a728aac5763cb62795060f0452bd6da63 100644 (file)
@@ -172,7 +172,7 @@ def graph_armature(obj, filepath, FAKE_PARENT=True, CONSTRAINTS=True, DRIVERS=Tr
     fileobject.close()
 
     '''
-    print(".", end='')
+    print(".", end="")
     import sys
     sys.stdout.flush()
     '''
index 4116bfda0c7d1b7b0340dbe0ffbcc20da7ec373e..7eccda74e14c04962890556f54bcbe2f30e97d96 100644 (file)
@@ -66,9 +66,9 @@ def rna_id_ignore(rna_id):
 
 def range_str(val):
     if val < -10000000:
-        return '-inf'
+        return "-inf"
     elif val > 10000000:
-        return 'inf'
+        return "inf"
     elif type(val) == float:
         return '%g' % val
     else:
@@ -305,8 +305,8 @@ class InfoPropertyRNA:
         return type_str
 
     def __str__(self):
-        txt = ''
-        txt += ' * ' + self.identifier + ': ' + self.description
+        txt = ""
+        txt += " * " + self.identifier + ": " + self.description
 
         return txt
 
@@ -398,7 +398,7 @@ class InfoOperatorRNA:
             return None, None
 
 
-def _GetInfoRNA(bl_rna, cls, parent_id=''):
+def _GetInfoRNA(bl_rna, cls, parent_id=""):
 
     if bl_rna is None:
         return None
@@ -641,7 +641,7 @@ if __name__ == "__main__":
 
         props = [(prop.identifier, prop) for prop in v.properties]
         for prop_id, prop in sorted(props):
-            # if prop.type == 'boolean':
+            # if prop.type == "boolean":
             #     continue
             prop_type = prop.type
             if prop.array_length > 0:
index 710035dc29fd6c3313d0bc11832f34685feec0db..5354fd1c7765553a4e5be4f1503c2db5393f75c1 100644 (file)
@@ -352,7 +352,7 @@ def xml_file_run(context, filepath, rna_map):
 
 def xml_file_write(context, filepath, rna_map):
 
-    file = open(filepath, 'w', encoding='utf-8')
+    file = open(filepath, "w", encoding="utf-8")
     fw = file.write
 
     fw("<bpy>\n")
index 0fa80a8f855f8c5daca52b95f3ef56556cdd0eaf..6fc50bcfe0d015aeeeb3b347973ba57d17e3da32 100644 (file)
@@ -27,7 +27,7 @@ import sys
 
 
 def cutPoint(text, length):
-    "Returns position of the last space found before 'length' chars"
+    """Returns position of the last space found before 'length' chars"""
     l = length
     c = text[l]
     while c != ' ':
@@ -98,7 +98,7 @@ def write_sysinfo(op):
     output.write(lilies)
     ffmpeg = bpy.app.ffmpeg
     if ffmpeg.supported:
-        for lib in ['avcodec', 'avdevice', 'avformat', 'avutil', 'swscale']:
+        for lib in ("avcodec", "avdevice", "avformat", "avutil", "swscale"):
             output.write("%r:%r%r\n" % (lib, " " * (10 - len(lib)),
                          getattr(ffmpeg, lib + "_version_string")))
     else:
index 5a428467f1291278a9d420737ed7e42cbacc144f..98bad276109733b7e4232d8d2c9e4ef974240b1f 100644 (file)
@@ -227,7 +227,7 @@ class BakeAction(Operator):
         self.frame_start = scene.frame_start
         self.frame_end = scene.frame_end
         self.bake_types = {'POSE'} if context.mode == 'POSE' else {'OBJECT'}
-        
+
         wm = context.window_manager
         return wm.invoke_props_dialog(self)
 
index ff87f98658d9a3dcecb8b69f67334674c43df1ce..82a54077bdc9426b074fdafa715a3e91315540e3 100644 (file)
@@ -77,7 +77,7 @@ class ConsoleBanner(Operator):
 
         # default to python
         if not sc.language:
-            sc.language = 'python'
+            sc.language = "python"
 
         module = _lang_module_get(sc)
         banner = getattr(module, "banner", None)
index fbf0e47f0c868b8446a3f17e31607a0fd6ee3f83..a2c632a0244f76ac8692a3095e598a8c21c0452b 100644 (file)
@@ -34,7 +34,8 @@ class SelectPattern(Operator):
 
     pattern = StringProperty(
             name="Pattern",
-            description="Name filter using '*', '?' and '[abc]' unix style wildcards",
+            description="Name filter using '*', '?' and "
+                        "'[abc]' unix style wildcards",
             maxlen=64,
             default="*",
             )
@@ -130,8 +131,8 @@ class SelectCamera(Operator):
 
 
 class SelectHierarchy(Operator):
-    '''Select object relative to the active object's position ''' \
-    '''in the hierarchy'''
+    """Select object relative to the active object's position """
+    """in the hierarchy"""
     bl_idname = "object.select_hierarchy"
     bl_label = "Select Hierarchy"
     bl_options = {'REGISTER', 'UNDO'}
@@ -277,8 +278,8 @@ class SubdivisionSet(Operator):
 
 
 class ShapeTransfer(Operator):
-    '''Copy another selected objects active shape to this one by ''' \
-    '''applying the relative offsets'''
+    """Copy another selected objects active shape to this one by """
+    """applying the relative offsets"""
 
     bl_idname = "object.shape_key_transfer"
     bl_label = "Transfer Shape Key"
index 4171b8b3c2cea330a885cf076bb8488e9e6acbc0..bf5a57fb39ace31e6fa40a6cb23626aed50234d2 100644 (file)
@@ -16,7 +16,7 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-# <pep8-80 compliant>
+# <pep8 compliant>
 
 import bpy
 from bpy.types import Menu, Operator
index 1e18825a155ea63a21267ad32488011e13b62645..ac4aa96f6558d7d9db9b71765b1f94e09ca8e352 100644 (file)
@@ -107,7 +107,6 @@ def boundsEdgeLoop(edges):
     # print len(faces), minx, maxx, miny , maxy
     for ed in edges:
         for pt in ed:
-            print 'ass'
             x= pt[0]
             y= pt[1]
             if x<minx: x= minx
@@ -502,7 +501,6 @@ def mergeUvIslands(islandList):
 
                                 It gives about 10% speedup with minimal errors.
                                 '''
-                                #print 'ass'
                                 # Move the test along its width + SMALL_NUM
                                 #boxLeft += sourceIsland[4] + SMALL_NUM
                                 boxLeft += sourceIsland[4]
@@ -832,7 +830,7 @@ def main(context,
         USER_ONLY_SELECTED_FACES = False
 
     if not obList:
-        raise('error, no selected mesh objects')
+        raise Exception("error, no selected mesh objects")
 
     # Reuse variable
     if len(obList) == 1:
index 4d95c2d5d03bde2bdc1deeb5fded97e4fb67f11b..fc19a989032ae5a3a12dd48feb6eb1be284f82f9 100644 (file)
@@ -138,7 +138,7 @@ def execute_context_assign(self, context):
 
 
 class BRUSH_OT_active_index_set(Operator):
-    '''Set active sculpt/paint brush from it's number'''
+    """Set active sculpt/paint brush from it's number"""
     bl_idname = "brush.active_index_set"
     bl_label = "Set Brush Number"
 
@@ -371,8 +371,8 @@ class WM_OT_context_toggle_enum(Operator):
 
 
 class WM_OT_context_cycle_int(Operator):
-    '''Set a context value. Useful for cycling active material, '''
-    '''vertex keys, groups' etc'''
+    """Set a context value. Useful for cycling active material, """
+    """vertex keys, groups' etc"""
     bl_idname = "wm.context_cycle_int"
     bl_label = "Context Int Cycle"
     bl_options = {'UNDO', 'INTERNAL'}
@@ -799,7 +799,6 @@ class WM_OT_path_open(Operator):
         return {'FINISHED'}
 
 
-
 def _wm_doc_get_id(doc_id, do_url=True, url_prefix=""):
     id_split = doc_id.split(".")
     url = rna = None
@@ -832,7 +831,7 @@ def _wm_doc_get_id(doc_id, do_url=True, url_prefix=""):
                 url = ("%s/bpy.types.%s.html#bpy.types.%s.%s" % (url_prefix, class_name, class_name, class_prop))
             else:
                 rna = ("bpy.types.%s.%s" % (class_name, class_prop))
-    
+
     return url if do_url else rna
 
 
@@ -1061,7 +1060,7 @@ class WM_OT_properties_edit(Operator):
             prop_ui["soft_min"] = prop_ui["min"] = prop_type(self.min)
             prop_ui["soft_max"] = prop_ui["max"] = prop_type(self.max)
 
-        prop_ui['description'] = self.description
+        prop_ui["description"] = self.description
 
         # otherwise existing buttons which reference freed
         # memory may crash blender [#26510]
@@ -1597,10 +1596,11 @@ class WM_OT_addon_disable(Operator):
         addon_utils.disable(self.module)
         return {'FINISHED'}
 
+
 class WM_OT_theme_install(Operator):
     "Install a theme"
     bl_idname = "wm.theme_install"
-    bl_label  = "Install Theme..."
+    bl_label = "Install Theme..."
 
     overwrite = BoolProperty(
             name="Overwrite",
@@ -1624,10 +1624,10 @@ class WM_OT_theme_install(Operator):
         import os
         import shutil
         import traceback
-        
+
         xmlfile = self.filepath
 
-        path_themes = bpy.utils.user_resource('SCRIPTS','presets/interface_theme',create=True)
+        path_themes = bpy.utils.user_resource('SCRIPTS', "presets/interface_theme", create=True)
 
         if not path_themes:
             self.report({'ERROR'}, "Failed to get themes path")
@@ -1642,7 +1642,7 @@ class WM_OT_theme_install(Operator):
 
         try:
             shutil.copyfile(xmlfile, path_dest)
-            bpy.ops.script.execute_preset(filepath=path_dest,menu_idname="USERPREF_MT_interface_theme_presets")
+            bpy.ops.script.execute_preset(filepath=path_dest, menu_idname="USERPREF_MT_interface_theme_presets")
 
         except:
             traceback.print_exc()
@@ -1650,7 +1650,6 @@ class WM_OT_theme_install(Operator):
 
         return {'FINISHED'}
 
-
     def invoke(self, context, event):
         wm = context.window_manager
         wm.fileselect_add(self)
index 0f09893647aa86cf1ee8ff64715aa1661315513c..e6d9affee935111a252efe128caa60b91bc485cf 100644 (file)
@@ -120,13 +120,13 @@ class BONE_PT_transform_locks(BoneButtonsPanel, Panel):
         pchan = ob.pose.bones[bone.name]
 
         split = layout.split(percentage=0.1)
-        
+
         col = split.column(align=True)
         col.label(text="")
         col.label(text="X:")
         col.label(text="Y:")
         col.label(text="Z:")
-        
+
         col = split.row()
         sub = col.row()
         sub.active = not (bone.parent and bone.use_connect)
@@ -137,7 +137,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel, Panel):
         if pchan.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
             row = layout.row()
             row.prop(pchan, "lock_rotations_4d", text="Lock Rotation")
-            
+
             sub = row.row()
             sub.active = pchan.lock_rotations_4d
             sub.prop(pchan, "lock_rotation_w", text="W")
index 6a7415f7cec5ee0c56fddd8c43bdb07423f262c1..87ac56c11042f942bab77e3b9c5c69f863a3c625 100644 (file)
@@ -406,7 +406,7 @@ class DATA_PT_text_boxes(CurveButtonsPanel, Panel):
             col.prop(box, "x", text="X")
             col.prop(box, "y", text="Y")
 
-            row.operator("font.textbox_remove", text='', icon='X', emboss=False).index = i
+            row.operator("font.textbox_remove", text="", icon='X', emboss=False).index = i
 
 
 class DATA_PT_custom_props_curve(CurveButtonsPanel, PropertyPanel, Panel):
index 2e980f776a1f9b08ad89a5ca139b6d395e1ac50f..abcd27c308ee5231d8cb6955210afb54d8c0d680 100644 (file)
@@ -969,7 +969,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
 
         layout.label(text="Selected Vertices:")
         split = layout.split()
-        
+
         col = split.column(align=True)
         col.operator("object.skin_loose_mark_clear", text="Mark Loose").action = "MARK"
         col.operator("object.skin_loose_mark_clear", text="Clear Loose").action = "CLEAR"
@@ -983,6 +983,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "use_x_symmetry")
         col.prop(md, "use_y_symmetry")
         col.prop(md, "use_z_symmetry")
-        
+
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)
index 87c62e2791f8729666d411952e1dc33f0ff2c079..3c30f27f16b2ccac0ea7d11a48b45793edb23d0d 100644 (file)
@@ -105,13 +105,13 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel, Panel):
         ob = context.object
 
         split = layout.split(percentage=0.1)
-        
+
         col = split.column(align=True)
         col.label(text="")
         col.label(text="X:")
         col.label(text="Y:")
         col.label(text="Z:")
-        
+
         col = split.row()
         col.column().prop(ob, "lock_location", text="Location")
         col.column().prop(ob, "lock_rotation", text="Rotation")
@@ -120,7 +120,7 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel, Panel):
         if ob.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
             row = layout.row()
             row.prop(ob, "lock_rotations_4d", text="Lock Rotation")
-            
+
             sub = row.row()
             sub.active = ob.lock_rotations_4d
             sub.prop(ob, "lock_rotation_w", text="W")
index 9dc6c62a9e0fbb70892e896b51153aebddcbc8a2..1ed3638080a199d40e58eb31be53a57392e61a06 100644 (file)
@@ -526,7 +526,7 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel):
         if ffmpeg.format in {'AVI', 'QUICKTIME', 'MKV', 'OGG'}:
             split.prop(ffmpeg, "codec")
         elif rd.ffmpeg.format == 'H264':
-            split.prop(ffmpeg, 'use_lossless_output')
+            split.prop(ffmpeg, "use_lossless_output")
         else:
             split.label()
 
@@ -575,7 +575,7 @@ class RENDER_PT_bake(RenderButtonsPanel, Panel):
 
         multires_bake = False
         if rd.bake_type in ['NORMALS', 'DISPLACEMENT']:
-            layout.prop(rd, 'use_bake_multires')
+            layout.prop(rd, "use_bake_multires")
             multires_bake = rd.use_bake_multires
 
         if not multires_bake:
index af8fcc6cbdc43e883c204607940c8dd3b1c81042..c9c9c36217bc31dc4fb7186ad080f1fe91a948b1 100644 (file)
@@ -165,7 +165,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel):
             row.label(text="Array Target:")
             row.prop(ksp, "use_entire_array", text="All Items")
             if ksp.use_entire_array:
-                row.label(text=" ") # padding
+                row.label(text=" ")  # padding
             else:
                 row.prop(ksp, "array_index", text="Index")
 
@@ -177,7 +177,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel):
             col.prop(ksp, "group_method", text="")
             if ksp.group_method == 'NAMED':
                 col.prop(ksp, "group")
-            
+
             col = row.column(align=True)
             col.label(text="Keyframing Settings:")
             col.prop(ksp, "bl_options")
index a77302ff4ae620fdb6b1929a4d71e3ed7ca12eb5..579d44c2355d6455784d494f7a622dba1c261473 100644 (file)
@@ -48,7 +48,7 @@ class CLIP_HT_header(Header):
                     sub.menu("CLIP_MT_clip")
 
         row = layout.row()
-        row.template_ID(sc, "clip", open='clip.open')
+        row.template_ID(sc, "clip", open="clip.open")
 
         if clip:
             tracking = clip.tracking
@@ -95,7 +95,8 @@ class CLIP_HT_header(Header):
 
                 row = layout.row(align=True)
                 row.prop(dopesheet, "sort_method", text="")
-                row.prop(dopesheet, "use_invert_sort", text="Invert", toggle=True)
+                row.prop(dopesheet, "use_invert_sort",
+                         text="Invert", toggle=True)
         else:
             layout.prop(sc, "view", text="", expand=True)
 
@@ -121,7 +122,7 @@ class CLIP_HT_header(Header):
                 sub.menu("CLIP_MT_clip")
 
         row = layout.row()
-        row.template_ID(sc, "clip", open='clip.open')
+        row.template_ID(sc, "clip", open="clip.open")
 
         layout.prop(sc, "mode", text="")
 
@@ -255,7 +256,7 @@ class CLIP_PT_tools_marker(CLIP_PT_tracking_panel, Panel):
             col.prop(settings, "default_pattern_match", text="")
 
             col.separator()
-            col.operator('clip.track_settings_as_default',
+            col.operator("clip.track_settings_as_default",
                          text="Copy From Active Track")
 
 
@@ -340,9 +341,9 @@ class CLIP_PT_tools_cleanup(CLIP_PT_tracking_panel, Panel):
 
         layout.operator("clip.clean_tracks")
 
-        layout.prop(settings, 'clean_frames', text="Frames")
-        layout.prop(settings, 'clean_error', text="Error")
-        layout.prop(settings, 'clean_action', text="")
+        layout.prop(settings, "clean_frames", text="Frames")
+        layout.prop(settings, "clean_error", text="Error")
+        layout.prop(settings, "clean_action", text="")
 
 
 class CLIP_PT_tools_geometry(CLIP_PT_reconstruction_panel, Panel):
@@ -553,7 +554,8 @@ class CLIP_PT_track(CLIP_PT_tracking_panel, Panel):
 
         row.separator()
         sub = row.row()
-        sub.prop(act_track, "use_alpha_preview", text="", toggle=True, icon='IMAGE_ALPHA')
+        sub.prop(act_track, "use_alpha_preview",
+                 text="", toggle=True, icon='IMAGE_ALPHA')
 
         layout.separator()
 
@@ -735,7 +737,9 @@ class CLIP_PT_active_mask_point(Panel):
         mask = sc.mask
 
         if mask and sc.mode == 'MASKEDIT':
-            return mask.layers.active and mask.layers.active.splines.active_point
+            mask_layer_active = mask.layers.active
+            return (mask_layer_active and
+                    mask_layer_active.splines.active_point)
 
         return False
 
@@ -979,7 +983,7 @@ class CLIP_PT_proxy(CLIP_PT_clip_view_panel, Panel):
 
         layout.prop(clip.proxy, "quality")
 
-        layout.prop(clip, 'use_proxy_custom_directory')
+        layout.prop(clip, "use_proxy_custom_directory")
         if clip.use_proxy_custom_directory:
             layout.prop(clip.proxy, "directory")
 
@@ -1053,7 +1057,8 @@ class CLIP_MT_view(Menu):
 
             for a, b in ratios:
                 text = "Zoom %d:%d" % (a, b)
-                layout.operator("clip.view_zoom_ratio", text=text).ratio = a / b
+                layout.operator("clip.view_zoom_ratio",
+                                text=text).ratio = a / b
         else:
             layout.prop(sc, "show_seconds")
             layout.separator()
@@ -1203,16 +1208,20 @@ class CLIP_MT_select(Menu):
 
             layout.separator()
 
-            layout.operator("mask.select_all").action = 'TOGGLE'
-            layout.operator("mask.select_all", text="Inverse").action = 'INVERT'
+            layout.operator("mask.select_all"
+                            ).action = 'TOGGLE'
+            layout.operator("mask.select_all",
+                            text="Inverse").action = 'INVERT'
         else:
             layout.operator("clip.select_border")
             layout.operator("clip.select_circle")
 
             layout.separator()
 
-            layout.operator("clip.select_all").action = 'TOGGLE'
-            layout.operator("clip.select_all", text="Inverse").action = 'INVERT'
+            layout.operator("clip.select_all"
+                            ).action = 'TOGGLE'
+            layout.operator("clip.select_all",
+                            text="Inverse").action = 'INVERT'
 
             layout.menu("CLIP_MT_select_grouped")
 
@@ -1349,7 +1358,7 @@ class CLIP_MT_track_color_specials(Menu):
     def draw(self, context):
         layout = self.layout
 
-        layout.operator('clip.track_copy_color', icon='COPY_ID')
+        layout.operator("clip.track_copy_color", icon='COPY_ID')
 
 
 class CLIP_MT_stabilize_2d_specials(Menu):
@@ -1358,7 +1367,7 @@ class CLIP_MT_stabilize_2d_specials(Menu):
     def draw(self, context):
         layout = self.layout
 
-        layout.operator('clip.stabilize_2d_select')
+        layout.operator("clip.stabilize_2d_select")
 
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)
index 9cf4a3374832d061999b237e38587544a3a2ed9c..8ddb2df352a7ce4a5af8ea6c59c852ac44aa7dd8 100644 (file)
@@ -371,16 +371,16 @@ class INFO_MT_help(Menu):
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("wm.url_open", text="Manual", icon='HELP').url = 'http://wiki.blender.org/index.php/Doc:2.6/Manual'
-        layout.operator("wm.url_open", text="Release Log", icon='URL').url = 'http://www.blender.org/development/release-logs/blender-263/'
+        layout.operator("wm.url_open", text="Manual", icon='HELP').url = "http://wiki.blender.org/index.php/Doc:2.6/Manual"
+        layout.operator("wm.url_open", text="Release Log", icon='URL').url = "http://www.blender.org/development/release-logs/blender-263"
         layout.separator()
 
-        layout.operator("wm.url_open", text="Blender Website", icon='URL').url = 'http://www.blender.org/'
-        layout.operator("wm.url_open", text="Blender e-Shop", icon='URL').url = 'http://www.blender.org/e-shop'
-        layout.operator("wm.url_open", text="Developer Community", icon='URL').url = 'http://www.blender.org/community/get-involved/'
-        layout.operator("wm.url_open", text="User Community", icon='URL').url = 'http://www.blender.org/community/user-community/'
+        layout.operator("wm.url_open", text="Blender Website", icon='URL').url = "http://www.blender.org"
+        layout.operator("wm.url_open", text="Blender e-Shop", icon='URL').url = "http://www.blender.org/e-shop"
+        layout.operator("wm.url_open", text="Developer Community", icon='URL').url = "http://www.blender.org/community/get-involved"
+        layout.operator("wm.url_open", text="User Community", icon='URL').url = "http://www.blender.org/community/user-community"
         layout.separator()
-        layout.operator("wm.url_open", text="Report a Bug", icon='URL').url = 'http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse'
+        layout.operator("wm.url_open", text="Report a Bug", icon='URL').url = "http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse"
         layout.separator()
 
         layout.operator("wm.url_open", text="Python API Reference", icon='URL').url = bpy.types.WM_OT_doc_view._prefix
index b4100819ab0860ee9202c6baa3382a4af43f7b75..70f0f300f869988d9183e02740f7353a23a907be 100644 (file)
@@ -205,6 +205,7 @@ class NODE_PT_properties(Panel):
         col.prop(snode, "backdrop_y", text="Y")
         col.operator("node.backimage_move", text="Move")
 
+
 class NODE_PT_quality(bpy.types.Panel):
     bl_space_type = 'NODE_EDITOR'
     bl_region_type = 'UI'
@@ -225,7 +226,7 @@ class NODE_PT_quality(bpy.types.Panel):
         layout.prop(tree, "chunk_size")
         layout.prop(tree, "use_opencl")
 
-        
+
 class NODE_MT_node_color_presets(Menu):
     """Predefined node color"""
     bl_label = "Color Presets"
@@ -240,8 +241,8 @@ class NODE_MT_node_color_specials(Menu):
     def draw(self, context):
         layout = self.layout
 
-        layout.operator('node.node_copy_color', icon='COPY_ID')
+        layout.operator("node.node_copy_color", icon='COPY_ID')
+
 
-        
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)
index 276e8e5ae1d35f75b8d28ddadb7d8aad9c0af569..34168c07073f8c1ee93ce3f5f26f19e6669e11df 100644 (file)
@@ -352,7 +352,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         scene = context.scene
         frame_current = scene.frame_current
         strip = act_strip(context)
@@ -474,7 +474,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
         elif strip.type == 'TRANSFORM':
             layout = self.layout
             col = layout.column()
-    
+
             col.prop(strip, "interpolation")
             col.prop(strip, "translation_unit")
             col = layout.column(align=True)
@@ -483,7 +483,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
             col.prop(strip, "translate_start_y", text="Y")
 
             layout.separator()
-    
+
             col = layout.column(align=True)
             col.prop(strip, "use_uniform_scale")
             if (strip.use_uniform_scale):
@@ -568,10 +568,10 @@ class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
             split = layout.split(percentage=0.2)
             split.label(text="Path:")
             split.prop(strip, "filepath", text="")
-            
+
             layout.prop(strip, "mpeg_preseek")
             layout.prop(strip, "stream_index")
-        
+
         layout.prop(strip, "use_translation", text="Image Offset")
         if strip.use_translation:
             col = layout.column(align=True)
@@ -740,13 +740,13 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel):
             col = layout.column()
             col.label(text="Distortion:")
             col.prop(strip, "undistort")
-            
+
         split = layout.split(percentage=0.65)
 
         col = split.column()
         col.prop(strip, "use_reverse_frames", text="Backwards")
         col.prop(strip, "use_deinterlace")
-        
+
         col = split.column()
         col.label(text="Flip:")
         col.prop(strip, "use_flip_x", text="X")
index 2d349931dc48a4086ee616947c682f423375ffdd..7a147bac38ccc5b3aff2c37c6bed20a8f68e4048 100644 (file)
@@ -245,7 +245,7 @@ class USERPREF_PT_interface(Panel):
 
         col.prop(view, "show_splash")
 
-        if os.name == 'nt':
+        if os.name == "nt":
             col.prop(view, "quit_dialog")
 
 
@@ -419,7 +419,7 @@ class USERPREF_PT_system(Panel):
         col.separator()
         col.separator()
 
-        if hasattr(system, 'compute_device'):
+        if hasattr(system, "compute_device"):
             col.label(text="Compute Device:")
             col.row().prop(system, "compute_device_type", expand=True)
             sub = col.row()
@@ -1094,7 +1094,7 @@ class USERPREF_PT_addons(Panel):
 
                 rowsub = row.row()
                 rowsub.active = is_enabled
-                rowsub.label(text='%s: %s' % (info['category'], info["name"]))
+                rowsub.label(text='%s: %s' % (info["category"], info["name"]))
                 if info["warning"]:
                     rowsub.label(icon='ERROR')
 
index b525ab922d2bddd0cd72a96fa4dbc07bb99b8719..660829f4f40ae05ce9c4983b82ae0da2fe3c6497 100644 (file)
@@ -2391,7 +2391,7 @@ class VIEW3D_PT_view3d_display(Panel):
             col.prop(gs, "material_mode", text="")
             col.prop(view, "show_textured_solid")
 
-        col.prop(view, "show_backface_culling")            
+        col.prop(view, "show_backface_culling")
 
         layout.separator()
 
@@ -2556,7 +2556,7 @@ class VIEW3D_PT_background_image(Panel):
                         has_bg = True
 
                 elif bg.source == 'MOVIE_CLIP':
-                    box.prop(bg, 'use_camera_clip')
+                    box.prop(bg, "use_camera_clip")
 
                     column = box.column()
                     column.active = not bg.use_camera_clip
index a1f616cc2377604369810aeba269752c42ee8e35..afffa054a1e98ed638378878d6bec38c69640857 100644 (file)
@@ -987,7 +987,7 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel):
             col.prop(mesh, "use_mirror_topology")
 
         col.prop(wpaint, "input_samples")
-        
+
         self.unified_paint_settings(col, context)
 
 # Commented out because the Apply button isn't an operator yet, making these settings useless
@@ -1138,7 +1138,7 @@ class VIEW3D_MT_tools_projectpaint_stencil(Menu):
 
 
 class VIEW3D_PT_tools_particlemode(View3DPanel, Panel):
-    '''default tools for particle mode'''
+    """default tools for particle mode"""
     bl_context = "particlemode"
     bl_label = "Options"