replaced f-strings to keep compatibility with python<3.6
parent
2fb96b0906
commit
ceffdc4a5b
|
@ -3189,11 +3189,12 @@ class Path(MutableSequence):
|
||||||
# Note: In browsers AFAIK, zero radius arcs are displayed
|
# Note: In browsers AFAIK, zero radius arcs are displayed
|
||||||
# as lines (see "examples/zero-radius-arcs.svg").
|
# as lines (see "examples/zero-radius-arcs.svg").
|
||||||
# Thus zero radius arcs are substituted for lines here.
|
# Thus zero radius arcs are substituted for lines here.
|
||||||
warn(f'Replacing degenerate (zero radius) Arc with a '
|
warn('Replacing degenerate (zero radius) Arc with a Line: '
|
||||||
f'Line: Arc(start={current_pos}, radius={radius}, '
|
'Arc(start={}, radius={}, rotation={}, large_arc={}, '
|
||||||
f'rotation={rotation}, large_arc={arc}, '
|
'sweep={}, end={})'.format(
|
||||||
f'sweep={sweep}, end={end}) -> '
|
current_pos, radius, rotation, arc, sweep, end) +
|
||||||
f'Line(start={current_pos}, end={end})')
|
' --> Line(start={}, end={})'
|
||||||
|
''.format(current_pos, end))
|
||||||
segments.append(Line(current_pos, end))
|
segments.append(Line(current_pos, end))
|
||||||
else:
|
else:
|
||||||
segments.append(
|
segments.append(
|
||||||
|
|
Loading…
Reference in New Issue