diff options
author | digitalfrost <gerald.hofmaier@gmail.com> | 2022-08-08 10:52:16 +0300 |
---|---|---|
committer | digitalfrost <gerald.hofmaier@gmail.com> | 2022-08-08 11:04:46 +0300 |
commit | 54b9ed97aeb3e8ddf7af65e479fe7ade3a492aa0 (patch) | |
tree | a55d9759d38c8cc90ea1e4d88acc2504803d45fe /cura | |
parent | ff07129f2ce6bf92d192be003f0ef5457ae2b842 (diff) |
Use is not operator rather than not ... is
This is advocated by both PEP8 and the Google Python Style Guide
Diffstat (limited to 'cura')
-rw-r--r-- | cura/Arranging/ShapeArray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Arranging/ShapeArray.py b/cura/Arranging/ShapeArray.py index 3060ea6e8e..714d9d3837 100644 --- a/cura/Arranging/ShapeArray.py +++ b/cura/Arranging/ShapeArray.py @@ -81,7 +81,7 @@ class ShapeArray: 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: + if child_hull_head is not None: hull_head_verts = hull_head_verts.unionConvexHulls(child_hull_head) offset_verts = hull_head_verts.getMinkowskiHull(Polygon.approximatedCircle(min_offset)) |