Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalfrost <gerald.hofmaier@gmail.com>2022-08-08 10:50:36 +0300
committerdigitalfrost <gerald.hofmaier@gmail.com>2022-08-08 11:04:46 +0300
commitff07129f2ce6bf92d192be003f0ef5457ae2b842 (patch)
treecbb539d11773d269df3321aa008727d079e495ac
parent06e61a31291bc4fc307837ebf496e12089de2b3a (diff)
Use is not operator rather than not ... is
This is advocated by both PEP8 and the Google Python Style Guide
-rw-r--r--cura/Arranging/ShapeArray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Arranging/ShapeArray.py b/cura/Arranging/ShapeArray.py
index 45454f6239..3060ea6e8e 100644
--- a/cura/Arranging/ShapeArray.py
+++ b/cura/Arranging/ShapeArray.py
@@ -78,7 +78,7 @@ class ShapeArray:
for child in children:
# 'Inefficient' combination of convex hulls through known code rather than mess it up:
child_hull = child.callDecoration("getConvexHull")
- if not child_hull is None:
+ if child_hull is not None:
hull_verts = hull_verts.unionConvexHulls(child_hull)
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
if not child_hull_head is None: