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:28:26 +02:00
parent 2f9e5b00bb
commit d65e198e8c

View file

@ -703,7 +703,7 @@ class X3DReader(MeshReader):
for c in node: for c in node:
if c.tag == "Coordinate": if c.tag == "Coordinate":
c = self.resolveDefUse(c) c = self.resolveDefUse(c)
if not c is None: if c is not None:
pt = c.attrib.get("point") pt = c.attrib.get("point")
if pt: if pt:
# allow the list of float values in 'point' attribute to # allow the list of float values in 'point' attribute to