diff --git a/Lib/fontTools/pens/qu2cuPen.py b/Lib/fontTools/pens/qu2cuPen.py index 547f3a1ae..e5218f49b 100644 --- a/Lib/fontTools/pens/qu2cuPen.py +++ b/Lib/fontTools/pens/qu2cuPen.py @@ -62,8 +62,8 @@ class Qu2CuPen(ContourFilterPen): quadratics = [] currentPt = None newContour = [] - for op,args in contour: - if op == 'qCurveTo' and len(args) > 2 and args[-1] is not None: + for op, args in contour: + if op == "qCurveTo" and len(args) > 2 and args[-1] is not None: quadratics.append((currentPt,) + args) else: if quadratics: diff --git a/Lib/fontTools/qu2cu/qu2cu.py b/Lib/fontTools/qu2cu/qu2cu.py index b178d4876..4c1a65c13 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -269,7 +269,7 @@ def spline_to_curves(q, tolerance=0.5, all_cubic=False): j = 0 for i in reversed(splits): if not all_cubic and j + 1 == i: - curves.append(q[j:j+3]) + curves.append(q[j : j + 3]) else: curves.append(merge_curves(elevated_quadratics[j:i])[0]) j = i