mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 14:55:59 +08: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
@ -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…
x
Reference in New Issue
Block a user