[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2966] trunk/py/scripts/addons: Code Cleanup: pep8

Campbell Barton ideasman42 at gmail.com
Sun Feb 5 10:40:43 CET 2012


Revision: 2966
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2966
Author:   campbellbarton
Date:     2012-02-05 09:40:34 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Code Cleanup: pep8

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/__init__.py
    trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
    trunk/py/scripts/addons/space_view3d_copy_attributes.py

Modified: trunk/py/scripts/addons/io_scene_x3d/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/__init__.py	2012-02-05 07:15:04 UTC (rev 2965)
+++ trunk/py/scripts/addons/io_scene_x3d/__init__.py	2012-02-05 09:40:34 UTC (rev 2966)
@@ -136,7 +136,8 @@
             )
     name_decorations = BoolProperty(
             name="Name decorations",
-            description="Add prefixes to the names of exported nodes to indicate their type",
+            description=("Add prefixes to the names of exported nodes to "
+                         "indicate their type"),
             default=True,
             )
     use_h3d = BoolProperty(
@@ -144,7 +145,7 @@
             description="Export shaders for H3D",
             default=False,
             )
-            
+
     axis_forward = EnumProperty(
             name="Forward",
             items=(('X', "X Forward", ""),
@@ -156,7 +157,7 @@
                ),
         default='Z',
         )
-        
+
     axis_up = EnumProperty(
             name="Up",
             items=(('X', "X Up", ""),

Modified: trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2012-02-05 07:15:04 UTC (rev 2965)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py	2012-02-05 09:40:34 UTC (rev 2966)
@@ -256,8 +256,6 @@
     from bpy_extras.io_utils import unique_name
     from xml.sax.saxutils import quoteattr, escape
 
-    
-    
     if name_decorations:
         # If names are decorated, the uuid map can be split up
         # by type for efficiency of collision testing
@@ -280,7 +278,7 @@
         group_ = 'group_'
     else:
         # If names are not decorated, it may be possible for two objects to
-        # have the same name, so there has to be a unified dictionary to 
+        # have the same name, so there has to be a unified dictionary to
         # prevent uuid collisions.
         uuid_cache = {}
         uuid_cache_object = uuid_cache           # object
@@ -299,7 +297,7 @@
         MA_ = ''
         LA_ = ''
         group_ = ''
-    
+
     _TRANSFORM = '_TRANSFORM'
 
     # store files to copy

Modified: trunk/py/scripts/addons/space_view3d_copy_attributes.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_copy_attributes.py	2012-02-05 07:15:04 UTC (rev 2965)
+++ trunk/py/scripts/addons/space_view3d_copy_attributes.py	2012-02-05 09:40:34 UTC (rev 2966)
@@ -452,7 +452,8 @@
                                    vgroupIndex_weight[i][1], "REPLACE")
     return('INFO', "weights copied")
 
-object_copies = ( # ('obj_loc', "Location",
+object_copies = (
+                #('obj_loc', "Location",
                 #"Copy Location from Active to Selected", obLoc),
                 #('obj_rot', "Rotation",
                 #"Copy Rotation from Active to Selected", obRot),



More information about the Bf-extensions-cvs mailing list