diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-03 01:07:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-03 01:07:56 +0400 |
commit | e3958015db99927329604044094be1e6d3453e2d (patch) | |
tree | ab0de036430eca325ec795523bab26fd3797b5d4 /source | |
parent | 60dc2f521b05794901109a55caa5c810be6b6128 (diff) |
Code Cleanup: check is / is not when comparing singletons.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/rna_dump.py | 2 | ||||
-rw-r--r-- | source/tests/bl_mesh_modifiers.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/rna_dump.py b/source/blender/python/rna_dump.py index df902886f30..489f011e693 100644 --- a/source/blender/python/rna_dump.py +++ b/source/blender/python/rna_dump.py @@ -79,7 +79,7 @@ def seek(r, txt, recurs): except: keys = None - if keys != None: + if keys is not None: if PRINT_DATA: print(txt + '.keys() - ' + str(r.keys())) diff --git a/source/tests/bl_mesh_modifiers.py b/source/tests/bl_mesh_modifiers.py index 917ccbc0d24..0495f5d9f98 100644 --- a/source/tests/bl_mesh_modifiers.py +++ b/source/tests/bl_mesh_modifiers.py @@ -74,7 +74,7 @@ def render_gl(context, filepath, shade): def render_gl_all_modes(context, obj, filepath=""): - assert(obj != None) + assert(obj is not None) assert(filepath != "") scene = context.scene |