From 72751b2507952e8d5308bab87c009247d18d87d1 Mon Sep 17 00:00:00 2001 From: digitalfrost Date: Mon, 8 Aug 2022 09:36:53 +0200 Subject: [PATCH] Use is not operator rather than not ... is This is advocated by both PEP8 and the Google Python Style Guide --- plugins/X3DReader/X3DReader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/X3DReader/X3DReader.py b/plugins/X3DReader/X3DReader.py index 4ef60824f1..0b41578a05 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -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,