style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Sun, 29 Jul 2012 12:07:06 +0000 (12:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 29 Jul 2012 12:07:06 +0000 (12:07 +0000)
30 files changed:
release/scripts/modules/bl_i18n_utils/bl_process_msg.py
release/scripts/modules/bl_i18n_utils/check_po.py
release/scripts/modules/bl_i18n_utils/clean_po.py
release/scripts/modules/bl_i18n_utils/import_po_from_branches.py
release/scripts/modules/bl_i18n_utils/merge_po.py
release/scripts/modules/bl_i18n_utils/rtl_preprocess.py
release/scripts/modules/bl_i18n_utils/settings.py
release/scripts/modules/bl_i18n_utils/spell_check_utils.py
release/scripts/modules/bl_i18n_utils/update_branches.py
release/scripts/modules/bl_i18n_utils/update_mo.py
release/scripts/modules/bl_i18n_utils/update_po.py
release/scripts/modules/bl_i18n_utils/update_pot.py
release/scripts/modules/bl_i18n_utils/update_trunk.py
release/scripts/modules/bl_i18n_utils/utils.py
release/scripts/modules/console_python.py
release/scripts/startup/bl_ui/properties_data_armature.py
release/scripts/startup/bl_ui/properties_data_speaker.py
release/scripts/startup/bl_ui/properties_game.py
release/scripts/startup/bl_ui/properties_mask_common.py
release/scripts/startup/bl_ui/properties_scene.py
release/scripts/startup/bl_ui/properties_texture.py
release/scripts/startup/bl_ui/properties_world.py
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_sequencer.py
release/scripts/startup/bl_ui/space_text.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 f189e3a0d80bd1fc4dd3cb24025a17353718264d..b884423606dece1d973d1945f14e449e2210e5a1 100644 (file)
@@ -270,7 +270,6 @@ def dump_messages_rna(messages, check_ctxt):
     walk_keymap_hierarchy(KM_HIERARCHY, "KM_HIERARCHY")
 
 
-
 def dump_messages_pytext(messages, check_ctxt):
     """ dumps text inlined in the python user interface: eg.
 
@@ -291,7 +290,7 @@ def dump_messages_pytext(messages, check_ctxt):
 
     # Break recursive nodes look up on some kind of nodes.
     # E.g. we don’t want to get strings inside subscripts (blah["foo"])!
-    stopper_nodes = {ast.Subscript,}
+    stopper_nodes = {ast.Subscript, }
 
     for func_id, func in bpy.types.UILayout.bl_rna.functions.items():
         # check it has a 'text' argument
index b669a9ddff252fe3c9e622b0a002aea9d1904202..03a933887c6912ccc65452a5c89837a8b868f1b4 100755 (executable)
@@ -94,7 +94,6 @@ def main():
                         help="Restrict processed languages to those.")
     args = parser.parse_args()
 
-
     if args.pot:
         global FILE_NAME_POT
         FILE_NAME_POT = args.pot
@@ -145,24 +144,24 @@ def main():
                         ret = t
 
     if args.stats and glob_stats["nbr"] != 0.0:
-        nbr_contexts = len(glob_stats["contexts"]-{""})
+        nbr_contexts = len(glob_stats["contexts"] - {""})
         if nbr_contexts != 1:
             if nbr_contexts == 0:
                 nbr_contexts = "No"
             _ctx_txt = "s are"
         else:
             _ctx_txt = " is"
-        print("\nAverage stats for all {:.0f} processed files:\n" \
-              "    {:>6.1%} done!\n" \
-              "    {:>6.1%} of messages are tooltips.\n" \
-              "    {:>6.1%} of tooltips are translated.\n" \
-              "    {:>6.1%} of translated messages are tooltips.\n" \
-              "    {:>6.1%} of messages are commented.\n" \
-              "    The org msgids are currently made of {} signs.\n" \
-              "    All processed translations are currently made of {} signs.\n" \
-              "    {} specific context{} present:\n            {}\n" \
-              "".format(glob_stats["nbr"], glob_stats["lvl"]/glob_stats["nbr"],
-                        glob_stats["lvl_ttips"]/glob_stats["nbr"],
+        print("\nAverage stats for all {:.0f} processed files:\n"
+              "    {:>6.1%} done!\n"
+              "    {:>6.1%} of messages are tooltips.\n"
+              "    {:>6.1%} of tooltips are translated.\n"
+              "    {:>6.1%} of translated messages are tooltips.\n"
+              "    {:>6.1%} of messages are commented.\n"
+              "    The org msgids are currently made of {} signs.\n"
+              "    All processed translations are currently made of {} signs.\n"
+              "    {} specific context{} present:\n            {}\n"
+              "".format(glob_stats["nbr"], glob_stats["lvl"] / glob_stats["nbr"],
+                        glob_stats["lvl_ttips"] / glob_stats["nbr"],
                         glob_stats["lvl_trans_ttips"]/glob_stats["nbr"],
                         glob_stats["lvl_ttips_in_trans"]/glob_stats["nbr"],
                         glob_stats["lvl_comm"]/glob_stats["nbr"], glob_stats["nbr_signs"],
index f0b8dd6b1d2e63436c2518ae00504525380a8fbd..2924ad9fb74475a90bee5731ec449f9b29730123 100755 (executable)
@@ -65,7 +65,6 @@ def main():
                         help="Restrict processed languages to those.")
     args = parser.parse_args()
 
-
     ret = 0
 
     if args.langs:
index cbbef17b37dce3395fbbf93c3264751ec7ea885f..a15bea9ef0d743ba4b1d7a4534676aa453936c8c 100755 (executable)
@@ -56,12 +56,11 @@ def main():
                         help="Restrict processed languages to those.")
     args = parser.parse_args()
 
-
     ret = 0
 
-    threshold = float(settings.IMPORT_MIN_LEVEL)/100.0
+    threshold = float(settings.IMPORT_MIN_LEVEL) / 100.0
     if args.threshold is not None:
-        threshold = float(args.threshold)/100.0
+        threshold = float(args.threshold) / 100.0
 
     for lang in os.listdir(BRANCHES_DIR):
         if args.langs and lang not in args.langs:
@@ -74,7 +73,7 @@ def main():
             trans_msgs = stats["trans_msg"]
             lvl = 0.0
             if tot_msgs:
-                lvl = float(trans_msgs)/float(tot_msgs)
+                lvl = float(trans_msgs) / float(tot_msgs)
             if lvl > threshold:
                 if state["is_broken"] and args.strict:
                     print("{:<10}: {:>6.1%} done, but BROKEN, skipped." \
index 51e587ca4c8348b28a1c83ad6f3cf036251aa137..baf67de2e811253872d5e1aaf6e0f687870a85be 100755 (executable)
@@ -21,7 +21,7 @@
 # <pep8 compliant>
 
 # Merge one or more .po files into the first dest one.
-# If a msgkey is present in more than one merged po, the one in the first file wins, unless 
+# If a msgkey is present in more than one merged po, the one in the first file wins, unless
 # it’s marked as fuzzy and one later is not.
 # The fuzzy flag is removed if necessary.
 # All other comments are never modified.
@@ -59,7 +59,6 @@ def main():
                         help="The po's to merge into the dst.po one.")
     args = parser.parse_args()
 
-
     ret = 0
     done_msgkeys = set()
     done_fuzzy_msgkeys = set()
@@ -78,7 +77,7 @@ def main():
     # If we don’t want to replace existing valid translations, pre-populate
     # done_msgkeys and done_fuzzy_msgkeys.
     if not args.replace:
-        done_msgkeys =  dst_states["trans_msg"].copy()
+        done_msgkeys = dst_states["trans_msg"].copy()
         done_fuzzy_msgkeys = dst_states["fuzzy_msg"].copy()
     for po in args.src:
         messages, states, stats = utils.parse_messages(po)
index 9b2ee9839524a10ebdd67f12934fa3e6b75a58bf..5ee5c71be8b40bea55afd5539d8e3920e51fb0fa 100755 (executable)
@@ -86,6 +86,7 @@ FRIBIDI_FLAGS_DEFAULT = FRIBIDI_FLAG_SHAPE_MIRRORING | \
 FRIBIDI_FLAGS_ARABIC = FRIBIDI_FLAG_SHAPE_ARAB_PRES | \
                        FRIBIDI_FLAG_SHAPE_ARAB_LIGA
 
+
 ##### Kernel processing funcs. #####
 def protect_format_seq(msg):
     """
@@ -185,6 +186,7 @@ def log2vis(msgs):
 
         yield fbc_str.value
 
+
 ##### Command line stuff. #####
 def main():
     import argparse
@@ -208,7 +210,6 @@ def main():
                         help="The po's to pre-process messages.")
     args = parser.parse_args()
 
-
     msgs, state, u1 = utils.parse_messages(args.src)
     if state["is_broken"]:
         print("Source po is BROKEN, aborting.")
index 094d8e481e9c31c0e64b0098eb747402772adcd3..d323dd37979a6055e99764ae690ede890176f882 100644 (file)
@@ -55,7 +55,7 @@ DOMAIN = "blender"
 
 # Our own "gettext" stuff.
 # File type (ext) to parse.
-PYGETTEXT_ALLOWED_EXTS =  {".c", ".cpp", ".cxx", ".hpp", ".hxx", ".h"}
+PYGETTEXT_ALLOWED_EXTS = {".c", ".cpp", ".cxx", ".hpp", ".hxx", ".h"}
 
 # Where to search contexts definitions, relative to SOURCE_DIR (defined below).
 PYGETTEXT_CONTEXTS_DEFSRC = os.path.join("source", "blender", "blenfont",
@@ -97,7 +97,7 @@ _msg_re = r"(?P<msg_raw>" + _str_whole_re.format(_="_msg") + r")"
 PYGETTEXT_KEYWORDS = (() +
     tuple((r"{}\(\s*" + _msg_re + r"\s*\)").format(it)
           for it in ("IFACE_", "TIP_", "N_")) +
-    tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*"+ _msg_re + r"\s*\)").format(it)
+    tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*" + _msg_re + r"\s*\)").format(it)
           for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_N_"))
 )
 
index 12db73170115deb7a245a3557c133bf8b00e1af3..d668f2badfcb890bef53193d49f4f30aa6262eba 100644 (file)
@@ -414,7 +414,7 @@ dict_uimsgs = {
     "gpu", "gpus",
     "hc",
     "hdr",
-    "hh", "mm", "ss", "ff", # hh:mm:ss:ff timecode
+    "hh", "mm", "ss", "ff",  # hh:mm:ss:ff timecode
     "hsv", "hsva",
     "id",
     "itu",
index 6626fa937a6b3754582c038342f052010587b4f4..199b09aa13ad6730ef753eb4c4006fa50d401f73 100755 (executable)
@@ -38,6 +38,7 @@ except:
 
 PY3 = settings.PYTHON3_EXEC
 
+
 def main():
     import argparse
     parser = argparse.ArgumentParser(description="" \
@@ -59,7 +60,6 @@ def main():
                         help="Restrict processed languages to those.")
     args = parser.parse_args()
 
-
     ret = 0
 
     # Generate a temp messages file.
index 2ca24a76cfe046dd2bed32c189a992c94452a1bf..4a68f19fab032198c5c310268d8961eb351d0e13 100755 (executable)
@@ -47,7 +47,7 @@ def process_po(po, lang, mo=None):
         mo_dir = os.path.join(TRUNK_MO_DIR, lang, "LC_MESSAGES")
         # Create dirs if not existing!
         if not os.path.isdir(mo_dir):
-            os.makedirs(mo_dir, exist_ok = True)
+            os.makedirs(mo_dir, exist_ok=True)
 
     # show stats
     cmd = (GETTEXT_MSGFMT_EXECUTABLE,
index d098b50e907fa75a467d9bd94ac571ab6fdc31e2..4c6495c5cfee7126fb950800bc6c1a5d0bd8d4dc 100755 (executable)
@@ -36,8 +36,8 @@ except:
 
 
 GETTEXT_MSGMERGE_EXECUTABLE = settings.GETTEXT_MSGMERGE_EXECUTABLE
-BRANCHES_DIR  = settings.BRANCHES_DIR
-TRUNK_PO_DIR  = settings.TRUNK_PO_DIR
+BRANCHES_DIR = settings.BRANCHES_DIR
+TRUNK_PO_DIR = settings.TRUNK_PO_DIR
 FILE_NAME_POT = settings.FILE_NAME_POT
 
 
index ca5d156be9b84beeb8d3573693e48ca269fa7005..f98fc5d7705db55f458a2650f306d498367b583d 100755 (executable)
@@ -74,12 +74,13 @@ pygettexts = tuple(re.compile(r).search
 _clean_str = re.compile(settings.str_clean_re).finditer
 clean_str = lambda s: "".join(m.group("clean") for m in _clean_str(s))
 
+
 def check_file(path, rel_path, messages):
     with open(path, encoding="utf-8") as f:
         f = f.read()
         for srch in pygettexts:
             m = srch(f)
-            line = pos =0
+            line = pos = 0
             while m:
                 d = m.groupdict()
                 # Context.
@@ -149,6 +150,8 @@ from spell_check_utils import (dict_uimsgs,
                               )
 
 _spell_checked = set()
+
+
 def spell_check(txt, cache):
     ret = []
 
@@ -194,6 +197,8 @@ def gen_empty_pot():
 
 escape_re = tuple(re.compile(r[0]) for r in settings.ESCAPE_RE)
 escape = lambda s, n: escape_re[n].sub(settings.ESCAPE_RE[n][1], s)
+
+
 def merge_messages(msgs, states, messages, do_checks, spell_cache):
     num_added = num_present = 0
     for (context, msgid), srcs in messages.items():
index 5e0ceab387c87160c643004d8e7bf4ac3ae34535..b7f8f375744a8628e592833d813c410ce5ae87be 100755 (executable)
@@ -65,7 +65,6 @@ def main():
                         help="Restrict processed languages to those.")
     args = parser.parse_args()
 
-
     ret = 0
     failed = set()
 
index ebf0f994a7aa38fa7d65bb38e21e0e69af3e0b18..3e5394d85a43c33159536539191e002d98311e3f 100644 (file)
@@ -40,6 +40,7 @@ def stripeol(s):
 def is_tooltip(msgid):
     return len(msgid) > 30
 
+
 def parse_messages(fname):
     """
     Returns a tupple (messages, states, stats).
@@ -82,7 +83,6 @@ def parse_messages(fname):
     fuzzy_messages = set()
     commented_messages = set()
 
-
     def clean_vars():
         nonlocal reading_msgid, reading_msgstr, reading_msgctxt, \
                  reading_comment, is_fuzzy, is_translated, is_commented, \
@@ -143,7 +143,6 @@ def parse_messages(fname):
 
         clean_vars()
 
-
     with open(fname, 'r', encoding="utf-8") as f:
         for line_nr, line in enumerate(f):
             line = stripeol(line)
@@ -156,7 +155,7 @@ def parse_messages(fname):
                 reading_ctxt = True
                 if line.startswith(COMMENT_PREFIX):
                     is_commented = True
-                    line = line[9+len(COMMENT_PREFIX):-1]
+                    line = line[9 + len(COMMENT_PREFIX):-1]
                 else:
                     line = line[9:-1]
                 msgctxt_lines.append(line)
@@ -167,7 +166,7 @@ def parse_messages(fname):
                 reading_msgid = True
                 if line.startswith(COMMENT_PREFIX):
                     is_commented = True
-                    line = line[7+len(COMMENT_PREFIX):-1]
+                    line = line[7 + len(COMMENT_PREFIX):-1]
                 else:
                     line = line[7:-1]
                 msgid_lines.append(line)
@@ -180,7 +179,7 @@ def parse_messages(fname):
                     reading_msgid = False
                 reading_msgstr = True
                 if line.startswith(COMMENT_PREFIX):
-                    line = line[8+len(COMMENT_PREFIX):-1]
+                    line = line[8 + len(COMMENT_PREFIX):-1]
                     if not is_commented:
                         is_broken = True
                 else:
@@ -194,13 +193,13 @@ def parse_messages(fname):
             elif line.startswith("#"):
                 if reading_msgid:
                     if is_commented:
-                        msgid_lines.append(line[1+len(COMMENT_PREFIX):-1])
+                        msgid_lines.append(line[1 + len(COMMENT_PREFIX):-1])
                     else:
                         msgid_lines.append(line)
                         is_broken = True
                 elif reading_msgstr:
                     if is_commented:
-                        msgstr_lines.append(line[1+len(COMMENT_PREFIX):-1])
+                        msgstr_lines.append(line[1 + len(COMMENT_PREFIX):-1])
                     else:
                         msgstr_lines.append(line)
                         is_broken = True
@@ -338,13 +337,13 @@ def print_stats(stats, glob_stats=None, prefix=""):
     lvl = lvl_ttips = lvl_trans_ttips = lvl_ttips_in_trans = lvl_comm = 0.0
 
     if tot_msgs > 0:
-        lvl = float(trans_msgs)/float(tot_msgs)
-        lvl_ttips = float(tot_ttips)/float(tot_msgs)
-        lvl_comm = float(comm_msgs)/float(tot_msgs+comm_msgs)
+        lvl = float(trans_msgs) / float(tot_msgs)
+        lvl_ttips = float(tot_ttips) / float(tot_msgs)
+        lvl_comm = float(comm_msgs) / float(tot_msgs+comm_msgs)
     if tot_ttips > 0:
-        lvl_trans_ttips = float(trans_ttips)/float(tot_ttips)
+        lvl_trans_ttips = float(trans_ttips) / float(tot_ttips)
     if trans_msgs > 0:
-        lvl_ttips_in_trans = float(trans_ttips)/float(trans_msgs)
+        lvl_ttips_in_trans = float(trans_ttips) / float(trans_msgs)
 
     if glob_stats:
         glob_stats["nbr"]                += 1.0
@@ -368,9 +367,8 @@ def print_stats(stats, glob_stats=None, prefix=""):
              "{:>6.1%} of translated messages are tooltips ({} over {}).\n"
              "".format(lvl_ttips_in_trans, trans_ttips, trans_msgs),
              "{:>6.1%} of messages are commented ({} over {}).\n"
-             "".format(lvl_comm, comm_msgs, comm_msgs+tot_msgs),
+             "".format(lvl_comm, comm_msgs, comm_msgs + tot_msgs),
              "This translation is currently made of {} signs.\n"
              "".format(nbr_trans_signs))
     print(prefix.join(lines))
     return 0
-
index 2aaadb17b7138ecc3c298a53d33dd68439f870fd..d32606eb0b0d390c15c8d240a8a76b621495dd15 100644 (file)
@@ -308,7 +308,8 @@ def banner(context):
                    'OUTPUT')
     add_scrollback("Convenience Imports: from mathutils import *; "
                    "from math import *", 'OUTPUT')
-    add_scrollback("Convenience Variables: C = bpy.context, D = bpy.data", 'OUTPUT')
+    add_scrollback("Convenience Variables: C = bpy.context, D = bpy.data",
+                   'OUTPUT')
     add_scrollback("", 'OUTPUT')
     sc.prompt = PROMPT
 
index 29170cde1fac8a1ef7d6fba25e91eb5f23cd91a6..e194d7a13703ac2f3d96a3322b3e8f83e91c3fe1 100644 (file)
@@ -323,7 +323,7 @@ class DATA_PT_onion_skinning(OnionSkinButtonsPanel):  # , Panel): # inherit from
 
     def draw(self, context):
         ob = context.object
-        
+
         self.draw_settings(context, ob.pose.animation_visualization, bones=True)
 
 
index 1d7646e928027f5f19f2b61f0bc46d87db8eb781..ca922dfb54483d2de646cec9e859eed091667953 100644 (file)
@@ -105,7 +105,7 @@ class DATA_PT_cone(DataButtonsPanel, Panel):
         speaker = context.speaker
 
         split = layout.split()
-        
+
         col = split.column()
         col.label("Angle:")
         col.prop(speaker, "cone_angle_outer", text="Outer")
index 54817c27714ef39ba3e3f59415aca910354c8d05..5ff49a7d369b3d4b74a68dfe709b18f90aefdc3b 100644 (file)
@@ -347,7 +347,7 @@ class RENDER_PT_game_stereo(RenderButtonsPanel, Panel):
             elif dome_type == 'PANORAM_SPH':
                 col = split.column()
                 col.prop(gs, "dome_buffer_resolution", text="Resolution", slider=True)
-                
+
                 col = split.column()
                 col.prop(gs, "dome_tessellation", text="Tessellation")
 
@@ -394,7 +394,7 @@ class RENDER_PT_game_system(RenderButtonsPanel, Panel):
         layout = self.layout
 
         gs = context.scene.game_settings
-        
+
         row = layout.row()
         row.prop(gs, "use_frame_rate")
         row.prop(gs, "restrict_animation_updates")
@@ -413,7 +413,7 @@ class RENDER_PT_game_display(RenderButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         gs = context.scene.game_settings
 
         layout.prop(context.scene.render, "fps", text="Animation Frame Rate", slider=False)
@@ -581,13 +581,13 @@ class WORLD_PT_game_mist(WorldButtonsPanel, Panel):
         world = context.world
 
         layout.active = world.mist_settings.use_mist
-        
+
         layout.prop(world.mist_settings, "falloff")
 
         row = layout.row(align=True)
         row.prop(world.mist_settings, "start")
         row.prop(world.mist_settings, "depth")
-        
+
         layout.prop(world.mist_settings, "intensity", text="Minimum Intensity")
 
 
index 699ade3cb9597e9b831039e75df10c9c1c7e9c73..e40b46fda70e8216af8abcf6b50b6c7bad5f3ebc 100644 (file)
@@ -16,7 +16,7 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-# <pep8 compliant>
+# <pep8-80 compliant>
 
 # panels get subclassed (not registered directly)
 # menus are referenced `as is`
@@ -122,7 +122,7 @@ class MASK_PT_spline():
 
         col = layout.column()
         col.prop(spline, "weight_interpolation")
-        
+
         row = col.row()
         row.prop(spline, "use_cyclic")
         row.prop(spline, "use_fill")
index 361332428b6ebd61729a6261d39c49de8b4af0e5..8449d26f6e6d92eb8452b54ca3297195cc35ad0a 100644 (file)
@@ -39,7 +39,7 @@ class SCENE_PT_scene(SceneButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         scene = context.scene
 
         layout.prop(scene, "camera")
@@ -53,7 +53,7 @@ class SCENE_PT_audio(SceneButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         scene = context.scene
         rd = context.scene.render
         ffmpeg = rd.ffmpeg
@@ -83,7 +83,7 @@ class SCENE_PT_unit(SceneButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         unit = context.scene.unit_settings
 
         col = layout.column()
index 96094708ea2a46a66f3660378158e46bc7d734d1..46a17675c91e9915379f517acf78915d3717fb36 100644 (file)
@@ -116,7 +116,7 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         slot = getattr(context, "texture_slot", None)
         node = getattr(context, "texture_node", None)
         space = context.space_data
index 5af87875018ce154cf1cb44ea706cd3df3561c27..0b8d8a45a085921edafe3f5ba7931efc5ef7a0dc 100644 (file)
@@ -82,7 +82,7 @@ class WORLD_PT_world(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         world = context.world
 
         row = layout.row()
@@ -112,7 +112,7 @@ class WORLD_PT_ambient_occlusion(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         light = context.world.light_settings
 
         layout.active = light.use_ambient_occlusion
@@ -132,7 +132,7 @@ class WORLD_PT_environment_lighting(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         light = context.world.light_settings
 
         layout.active = light.use_environment_light
@@ -152,7 +152,7 @@ class WORLD_PT_indirect_lighting(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         light = context.world.light_settings
 
         layout.active = light.use_indirect_light and light.gather_method == 'APPROXIMATE'
@@ -171,7 +171,7 @@ class WORLD_PT_gather(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         light = context.world.light_settings
 
         layout.active = light.use_ambient_occlusion or light.use_environment_light or light.use_indirect_light
@@ -226,7 +226,7 @@ class WORLD_PT_mist(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         world = context.world
 
         layout.active = world.mist_settings.use_mist
@@ -256,7 +256,7 @@ class WORLD_PT_stars(WorldButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         world = context.world
 
         layout.active = world.star_settings.use_stars
index 53fcf71c31f6a1097a9d44448183b06917acfdd7..559cf7f93b713546605f283626f862a7f1d356a1 100644 (file)
@@ -188,11 +188,11 @@ class CLIP_PT_tools_marker(CLIP_PT_tracking_panel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         sc = context.space_data
         clip = sc.clip
         settings = clip.tracking.settings
-        
+
         col = layout.column(align=True)
         col.operator("clip.add_marker_move")
         col.operator("clip.detect_features")
@@ -293,7 +293,7 @@ class CLIP_PT_tools_solve(CLIP_PT_tracking_panel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         clip = context.space_data.clip
         tracking = clip.tracking
         settings = tracking.settings
@@ -484,7 +484,7 @@ class CLIP_PT_track(CLIP_PT_tracking_panel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         sc = context.space_data
         clip = context.space_data.clip
         act_track = clip.tracking.tracks.active
@@ -551,7 +551,7 @@ class CLIP_PT_track_settings(CLIP_PT_tracking_panel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         clip = context.space_data.clip
         settings = clip.tracking.settings
 
@@ -786,7 +786,7 @@ class CLIP_PT_proxy(CLIP_PT_clip_view_panel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         sc = context.space_data
         clip = sc.clip
 
@@ -864,7 +864,7 @@ class CLIP_MT_view(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         sc = context.space_data
 
         if sc.view == 'CLIP':
@@ -1172,6 +1172,7 @@ class CLIP_PT_active_mask_point(MASK_PT_point, Panel):
     bl_space_type = 'CLIP_EDITOR'
     bl_region_type = 'UI'
 
+
 class CLIP_PT_tools_mask(MASK_PT_tools, Panel):
     bl_space_type = 'CLIP_EDITOR'
     bl_region_type = 'TOOLS'
index 87f7104d74e7c8b33df1ae368b87df18685132f9..3d9b3afc4ee8ba30a099eee465fe2a898cb7dff5 100644 (file)
@@ -213,7 +213,7 @@ class IMAGE_MT_uvs_snap(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'EXEC_REGION_WIN'
 
         layout.operator("uv.snap_selected", text="Selected to Pixels").target = 'PIXELS'
@@ -231,7 +231,7 @@ class IMAGE_MT_uvs_mirror(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'EXEC_REGION_WIN'
 
         layout.operator("transform.mirror", text="X Axis").constraint_axis[0] = True
@@ -839,7 +839,7 @@ class IMAGE_UV_sculpt(Panel, ImagePaintPanel):
             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")
+
         col = layout.column()
         col.prop(toolsettings, "uv_sculpt_lock_borders")
         col.prop(toolsettings, "uv_sculpt_all_islands")
@@ -849,7 +849,6 @@ class IMAGE_UV_sculpt(Panel, ImagePaintPanel):
             col.prop(toolsettings, "uv_relax_method")
 
 
-
 # -----------------------------------------------------------------------------
 # Mask (similar code in space_clip.py, keep in sync)
 # note! - panel placement does _not_ fit well with image panels... need to fix
@@ -886,6 +885,7 @@ class IMAGE_PT_active_mask_point(MASK_PT_point, Panel):
     bl_space_type = 'IMAGE_EDITOR'
     bl_region_type = 'PREVIEW'
 
+
 class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
     bl_space_type = 'IMAGE_EDITOR'
     bl_region_type = 'UI'  # is 'TOOLS' in the clip editor
index 9ff290698d3219171768c678321c4e646a571238..961ab08efdd406d81f99693dc4fb51f1cf63da27 100644 (file)
@@ -226,7 +226,7 @@ class NODE_PT_quality(bpy.types.Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         snode = context.space_data
         tree = snode.node_tree
 
@@ -236,7 +236,7 @@ class NODE_PT_quality(bpy.types.Panel):
         layout.prop(tree, "use_opencl")
         layout.prop(tree, "two_pass")
         layout.prop(snode, "show_highlight")
-        
+  
 
 class NODE_MT_node_color_presets(Menu):
     """Predefined node color"""
index fb212f594c8aaa300aba8631703112b2e6e9c101..d099db1645b406bb33db3ac1f6fd0f89bf05c3bd 100644 (file)
@@ -184,7 +184,7 @@ class SEQUENCER_MT_add(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'INVOKE_REGION_WIN'
 
         if len(bpy.data.scenes) > 10:
@@ -217,7 +217,7 @@ class SEQUENCER_MT_add_effect(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'INVOKE_REGION_WIN'
 
         layout.operator("sequencer.effect_strip_add", text="Add").type = 'ADD'
@@ -836,7 +836,7 @@ class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         render = context.scene.render
 
         col = layout.column()
index 56b242382dfbabeea713d211924c20e74ce5bfb0..eca9bc22db985aa41d66f423bd65e20c16f2fe62 100644 (file)
@@ -302,7 +302,7 @@ class TEXT_MT_toolbox(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'INVOKE_DEFAULT'
 
         layout.operator("text.cut")
index 5f59a76e724ce34f87e68634c143606a4d62e761..e443c7804a61caaa7c7b00492f974b11a11adaa6 100644 (file)
@@ -79,7 +79,7 @@ class USERPREF_HT_header(Header):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.template_header(menus=False)
 
         userpref = context.user_preferences
@@ -138,7 +138,7 @@ class USERPREF_MT_splash(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         split = layout.split()
         row = split.row()
         row.label("")
@@ -852,7 +852,7 @@ class USERPREF_MT_ndof_settings(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         input_prefs = context.user_preferences.inputs
 
         layout.separator()
@@ -982,7 +982,7 @@ class USERPREF_MT_addons_dev_guides(Menu):
     # menu to open web-pages with addons development guides
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator("wm.url_open", text="API Concepts", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro"
         layout.operator("wm.url_open", text="Addon Guidelines", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons"
         layout.operator("wm.url_open", text="How to share your addon", icon='URL').url = "http://wiki.blender.org/index.php/Dev:Py/Sharing"
index aea587844cfafcae076b48447114e6bafa783b12..5f6ed15e6e1c311456efe6ca7acbd9d38d525300 100644 (file)
@@ -177,7 +177,7 @@ class VIEW3D_MT_transform(VIEW3D_MT_transform_base):
 class VIEW3D_MT_transform_object(VIEW3D_MT_transform_base):
     def draw(self, context):
         layout = self.layout
-        
+
         # base menu
         VIEW3D_MT_transform_base.draw(self, context)
 
@@ -214,7 +214,7 @@ class VIEW3D_MT_transform_object(VIEW3D_MT_transform_base):
 class VIEW3D_MT_transform_armature(VIEW3D_MT_transform_base):
     def draw(self, context):
         layout = self.layout
-        
+
         # base menu
         VIEW3D_MT_transform_base.draw(self, context)
 
@@ -431,23 +431,23 @@ class VIEW3D_MT_view_align_selected(Menu):
         props = layout.operator("view3d.viewnumpad", text="Top")
         props.align_active = True
         props.type = 'TOP'
-        
+
         props = layout.operator("view3d.viewnumpad", text="Bottom")
         props.align_active = True
         props.type = 'BOTTOM'
-        
+
         props = layout.operator("view3d.viewnumpad", text="Front")
         props.align_active = True
         props.type = 'FRONT'
-        
+
         props = layout.operator("view3d.viewnumpad", text="Back")
         props.align_active = True
         props.type = 'BACK'
-        
+
         props = layout.operator("view3d.viewnumpad", text="Right")
         props.align_active = True
         props.type = 'RIGHT'
-        
+
         props = layout.operator("view3d.viewnumpad", text="Left")
         props.align_active = True
         props.type = 'LEFT'
@@ -1198,7 +1198,7 @@ class VIEW3D_MT_vertex_group(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'EXEC_AREA'
         layout.operator("object.vertex_group_assign", text="Assign to New Group").new = True
 
@@ -1357,7 +1357,7 @@ class VIEW3D_MT_particle_specials(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         particle_edit = context.tool_settings.particle_edit
 
         layout.operator("particle.rekey")
@@ -1801,7 +1801,7 @@ class VIEW3D_MT_edit_mesh_edges(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'INVOKE_REGION_WIN'
 
         layout.operator("mesh.edge_face_add")
@@ -1849,7 +1849,7 @@ class VIEW3D_MT_edit_mesh_faces(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         layout.operator_context = 'INVOKE_REGION_WIN'
 
         layout.operator("mesh.flip_normals")
@@ -2643,7 +2643,7 @@ class VIEW3D_PT_etch_a_ton(Panel):
 
     def draw(self, context):
         layout = self.layout
-        
+
         toolsettings = context.scene.tool_settings
 
         col = layout.column()
index a83a6e215faad09566d5332cdb66cec9d5bcfb68..ac962ab509756c7120f35a1e7b6edd60d3b77f46 100644 (file)
@@ -1124,7 +1124,7 @@ class VIEW3D_MT_tools_projectpaint_clone(Menu):
 
     def draw(self, context):
         layout = self.layout
-        
+
         for i, tex in enumerate(context.active_object.data.uv_textures):
             props = layout.operator("wm.context_set_int", text=tex.name)
             props.data_path = "active_object.data.uv_texture_clone_index"