From 89c57cb6c33b885d0697eb4eead34cf6d7917d9c Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Wed, 29 Nov 2017 18:37:03 -0800 Subject: fontbuild: fixes a minor issue with curveFitPen where != was used to check for None --- misc/pylib/fontbuild/curveFitPen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/pylib/fontbuild/curveFitPen.py b/misc/pylib/fontbuild/curveFitPen.py index f7c0caed9..f81d2329c 100644 --- a/misc/pylib/fontbuild/curveFitPen.py +++ b/misc/pylib/fontbuild/curveFitPen.py @@ -377,7 +377,7 @@ def fitBezier(pts,tangent0=None,tangent3=None): TT[i*2+1,j*2+1] = T[i,j+1] pout = pout.reshape((n*2,1),order="C") - if tangent0 != None and tangent3 != None: + if tangent0 is not None and tangent3 is not None: tangentConstraintsT = np.array([ [tangent0[1], -tangent0[0], 0, 0], [0, 0, tangent3[1], -tangent3[0]] -- cgit v1.2.3