From d65e198e8c400199f4761ef0a727354de43b2355 Mon Sep 17 00:00:00 2001 From: digitalfrost Date: Mon, 8 Aug 2022 09:28: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 e62c0886be..bf1966d013 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -703,7 +703,7 @@ class X3DReader(MeshReader): for c in node: if c.tag == "Coordinate": c = self.resolveDefUse(c) - if not c is None: + if c is not None: pt = c.attrib.get("point") if pt: # allow the list of float values in 'point' attribute to