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:50:36 +02:00
parent 06e61a3129
commit ff07129f2c

View file

@ -78,7 +78,7 @@ class ShapeArray:
for child in children: for child in children:
# 'Inefficient' combination of convex hulls through known code rather than mess it up: # 'Inefficient' combination of convex hulls through known code rather than mess it up:
child_hull = child.callDecoration("getConvexHull") child_hull = child.callDecoration("getConvexHull")
if not child_hull is None: if child_hull is not None:
hull_verts = hull_verts.unionConvexHulls(child_hull) hull_verts = hull_verts.unionConvexHulls(child_hull)
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
if not child_hull_head is None: if not child_hull_head is None: