Skip to content

Commit da654eb

Browse files
committed
Change f-string to % format for py2 compatibility
1 parent d02d0ab commit da654eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

InteractiveHtmlBom/ecad/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def add_arc():
126126
y2 = xc + math.sin(math.radians(a2))
127127
da = a2 - a1 if a2 > a1 else a2 + 360 - a1
128128
la = 1 if da > 180 else 0
129-
svgpath = f'M {x1} {y1} A {r} {r} 0 {la} 1 {x2} {y2}'
129+
svgpath = 'M %s %s A %s %s 0 %s 1 %s %s' % \
130+
(x1, y1, r, r, la, x2, y2)
130131
bbox.add_svgpath(svgpath, width, self.logger)
131132

132133
{
@@ -152,7 +153,7 @@ def __init__(self, ref, val, footprint, layer, attr=None, extra_fields={}):
152153

153154

154155
class BoundingBox(object):
155-
"""Geometry util to calculate and compound bounding box of simple shapes."""
156+
"""Geometry util to calculate and combine bounding box of simple shapes."""
156157

157158
def __init__(self):
158159
self._x0 = None

0 commit comments

Comments
 (0)