1- from __future__ import print_function , division , absolute_import
21import math
32from fontTools .misc import bezierTools
43from fontTools .pens .basePen import decomposeQuadraticSegment
5756
5857# Input
5958
60- class InputContour ( object ) :
59+ class InputContour :
6160
6261 def __init__ (self , contour ):
6362 # gather the point data
@@ -132,7 +131,7 @@ def hasOnCurve(self):
132131 return False
133132
134133
135- class InputSegment ( object ) :
134+ class InputSegment :
136135
137136 # __slots__ = ["points", "previousOnCurve", "scaledPreviousOnCurve", "flat", "used"]
138137
@@ -257,7 +256,7 @@ def tValueForPoint(self, point):
257256 raise NotImplementedError
258257
259258
260- class InputPoint ( object ) :
259+ class InputPoint :
261260
262261 __slots__ = ["coordinates" , "segmentType" , "smooth" , "name" , "kwargs" ]
263262
@@ -283,7 +282,7 @@ def copy(self):
283282 return copy
284283
285284 def __str__ (self ):
286- return "%s %s" % ( self .segmentType , self .coordinates )
285+ return f" { self .segmentType } { self .coordinates } "
287286
288287 def __repr__ (self ):
289288 return self .__str__ ()
@@ -456,7 +455,7 @@ def _convertPointsToSegments(points, willBeReversed=False):
456455# Output Objects
457456# --------------
458457
459- class OutputContour ( object ) :
458+ class OutputContour :
460459
461460 def __init__ (self , pointList ):
462461 if pointList [0 ] == pointList [- 1 ]:
@@ -932,7 +931,7 @@ def drawPoints(self, pointPen):
932931 pointPen .endPath ()
933932
934933
935- class OutputSegment ( object ) :
934+ class OutputSegment :
936935
937936 __slots__ = ["segmentType" , "points" , "final" ]
938937
0 commit comments