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-08 09:36:53 +02:00
parent 0f0815efab
commit 72751b2507

View file

@ -498,7 +498,7 @@ class X3DReader(MeshReader):
if scale:
mscale = scale[i] if len(scale) > 1 else scale[0]
if not mscale is None:
if mscale is not None:
m = m.dot(mscale)
# First the cross-section 2-vector is scaled,