mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
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:
parent
81a34d1d18
commit
2f9e5b00bb
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class X3DReader(MeshReader):
|
|||
geometry = self.resolveDefUse(sub_node)
|
||||
|
||||
# TODO: appearance is completely ignored. At least apply the material color...
|
||||
if not geometry is None:
|
||||
if geometry is not None:
|
||||
try:
|
||||
self.verts = self.faces = [] # Safeguard
|
||||
self.geometry_importers[geometry.tag](self, geometry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue