[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3846] contrib/py/scripts/addons: pep8 cleanup
Campbell Barton
ideasman42 at gmail.com
Fri Oct 12 16:25:15 CEST 2012
Revision: 3846
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3846
Author: campbellbarton
Date: 2012-10-12 14:25:15 +0000 (Fri, 12 Oct 2012)
Log Message:
-----------
pep8 cleanup
Modified Paths:
--------------
contrib/py/scripts/addons/io_scene_open_street_map.py
contrib/py/scripts/addons/io_scene_x/export_x.py
contrib/py/scripts/addons/mesh_show_vgroup_weights.py
contrib/py/scripts/addons/render_clay.py
contrib/py/scripts/addons/render_to_print.py
Modified: contrib/py/scripts/addons/io_scene_open_street_map.py
===================================================================
--- contrib/py/scripts/addons/io_scene_open_street_map.py 2012-10-12 06:26:28 UTC (rev 3845)
+++ contrib/py/scripts/addons/io_scene_open_street_map.py 2012-10-12 14:25:15 UTC (rev 3846)
@@ -246,7 +246,7 @@
bm.to_mesh(me)
# fast approximation of utm for not too big area
- if utm == False :
+ if utm is False :
global_matrix = Matrix(((0.65, 0.0, 0.0, 0.0),
(0.0, 1.0, 0.0, 0.0),
(0.0, 0.0, 1.0, 0.0),
Modified: contrib/py/scripts/addons/io_scene_x/export_x.py
===================================================================
--- contrib/py/scripts/addons/io_scene_x/export_x.py 2012-10-12 06:26:28 UTC (rev 3845)
+++ contrib/py/scripts/addons/io_scene_x/export_x.py 2012-10-12 14:25:15 UTC (rev 3846)
@@ -100,7 +100,7 @@
self.File.Close()
def Log(self, String, MessageVerbose=True):
- if self.Config.Verbose == True or MessageVerbose == False:
+ if self.Config.Verbose is True or MessageVerbose == False:
print(String)
# "Private" Methods
Modified: contrib/py/scripts/addons/mesh_show_vgroup_weights.py
===================================================================
--- contrib/py/scripts/addons/mesh_show_vgroup_weights.py 2012-10-12 06:26:28 UTC (rev 3845)
+++ contrib/py/scripts/addons/mesh_show_vgroup_weights.py 2012-10-12 14:25:15 UTC (rev 3846)
@@ -270,7 +270,7 @@
# Save current selection
selected_verts = []
for v in bm.verts:
- if v.select == True:
+ if v.select is True:
selected_verts.append(v.index)
if v.index != self.vert_and_group[0]:
v.select = False
@@ -327,7 +327,7 @@
# Save current selection
selected_verts = []
for v in bm.verts:
- if v.select == True:
+ if v.select is True:
selected_verts.append(v.index)
if v.index != self.vertex:
v.select = False
Modified: contrib/py/scripts/addons/render_clay.py
===================================================================
--- contrib/py/scripts/addons/render_clay.py 2012-10-12 06:26:28 UTC (rev 3845)
+++ contrib/py/scripts/addons/render_clay.py 2012-10-12 14:25:15 UTC (rev 3846)
@@ -64,7 +64,7 @@
if (mat.Mat_Clay):
i += 1
- if msg == True:
+ if msg is True:
if (i == 1):
self.report({'INFO'}, "The material \"" + AM.name + "\" is set "\
"as Clay!")
Modified: contrib/py/scripts/addons/render_to_print.py
===================================================================
--- contrib/py/scripts/addons/render_to_print.py 2012-10-12 06:26:28 UTC (rev 3845)
+++ contrib/py/scripts/addons/render_to_print.py 2012-10-12 14:25:15 UTC (rev 3846)
@@ -113,7 +113,7 @@
def update_settings_cb(self, context):
# annoying workaround for recursive call
- if update_settings_cb.level == False:
+ if update_settings_cb.level is False:
update_settings_cb.level = True
pixels_from_print(self)
update_settings_cb.level = False
More information about the Bf-extensions-cvs
mailing list