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:
digitalfrost 2022-08-08 09:52:16 +02:00
parent ff07129f2c
commit 54b9ed97ae

View file

@ -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))