From fabada54b186720df00c3c00c92d926786c00826 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Tue, 31 Oct 2017 18:22:56 +0000 Subject: [PATCH] ufo: minor _segments_to_quadratic is private, and always gets not-None 'stats' argument. This if-branch is always true. Removed. --- Lib/cu2qu/ufo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/cu2qu/ufo.py b/Lib/cu2qu/ufo.py index bb70e7f14..00da90db9 100644 --- a/Lib/cu2qu/ufo.py +++ b/Lib/cu2qu/ufo.py @@ -141,8 +141,7 @@ def _segments_to_quadratic(segments, max_err, stats): assert all(len(s) == n for s in new_points[1:]), 'Converted incompatibly' spline_length = str(n - 2) - if stats is not None: - stats[spline_length] = stats.get(spline_length, 0) + 1 + stats[spline_length] = stats.get(spline_length, 0) + 1 return [('qcurve', p) for p in new_points]