Browse Source

Use is not operator rather than not ...is

This is advocated by both PEP8 and the Google Python Style Guide
digitalfrost 2 years ago
parent
commit
d65e198e8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/X3DReader/X3DReader.py

+ 1 - 1
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