Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-29 07:54:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-29 07:54:27 +0400
commit1d838454afb884cf7b288afc7b6915c779230ecb (patch)
treea8d433cd705f8f3b47e3bb272daccea320f66dba /io_convert_image_to_mesh_img
parent0fcd2037beda8c2ce5fbd29700b1fc5545a29d28 (diff)
use identity comparison with None (as suggested by python)
Diffstat (limited to 'io_convert_image_to_mesh_img')
-rw-r--r--io_convert_image_to_mesh_img/import_img.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_convert_image_to_mesh_img/import_img.py b/io_convert_image_to_mesh_img/import_img.py
index 40813bf1..1735d1c3 100644
--- a/io_convert_image_to_mesh_img/import_img.py
+++ b/io_convert_image_to_mesh_img/import_img.py
@@ -102,7 +102,7 @@ class hirise_dtm_helper(object):
# When are we done with this level?
endStr = "END"
- if not currentObjectName == None:
+ if not currentObjectName is None:
endStr = "END_OBJECT = %s" % currentObjectName
line = ""
@@ -408,9 +408,9 @@ class hirise_dtm_helper(object):
# dimensions shrink as we remove pixels
processed_dims = img_props.processed_dims()
- if XSize == None:
+ if XSize is None:
XSize = processed_dims[0]
- if YSize == None:
+ if YSize is None:
YSize = processed_dims[1]
if XSize + XOffset > processed_dims[0]: