From 0f0815efabfed1083c3aab8f2654d4b9f3440562 Mon Sep 17 00:00:00 2001 From: digitalfrost Date: Mon, 8 Aug 2022 09:33:26 +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 bf1966d013..4ef60824f1 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -493,7 +493,7 @@ class X3DReader(MeshReader): # Columns are the unit vectors for the xz plane for the cross-section if orient: mrot = orient[i] if len(orient) > 1 else orient[0] - if not mrot is None: + if mrot is not None: m = m.dot(mrot) # Tested against X3DOM, the result matches, still not sure :( if scale: