mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28: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
0f0815efab
commit
72751b2507
@ -498,7 +498,7 @@ class X3DReader(MeshReader):
|
|||||||
|
|
||||||
if scale:
|
if scale:
|
||||||
mscale = scale[i] if len(scale) > 1 else scale[0]
|
mscale = scale[i] if len(scale) > 1 else scale[0]
|
||||||
if not mscale is None:
|
if mscale is not None:
|
||||||
m = m.dot(mscale)
|
m = m.dot(mscale)
|
||||||
|
|
||||||
# First the cross-section 2-vector is scaled,
|
# First the cross-section 2-vector is scaled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user