diff options
-rw-r--r-- | misc/pylib/fontbuild/curveFitPen.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]] |