Use is not operator rather than not ... is

This is advocated by both PEP8 and the Google Python Style Guide
This commit is contained in:
digitalfrost 2022-08-07 10:09:33 +02:00
parent 81a34d1d18
commit 2f9e5b00bb

View file

@ -134,7 +134,7 @@ class X3DReader(MeshReader):
geometry = self.resolveDefUse(sub_node)
# TODO: appearance is completely ignored. At least apply the material color...
if not geometry is None:
if geometry is not None:
try:
self.verts = self.faces = [] # Safeguard
self.geometry_importers[geometry.tag](self, geometry)