From ceffdc4a5babccfe27840f0656e14813e1fa820c Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Tue, 1 Dec 2020 20:32:26 -0800 Subject: [PATCH] replaced f-strings to keep compatibility with python<3.6 --- svgpathtools/path.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/svgpathtools/path.py b/svgpathtools/path.py index deb2122..e2a032b 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -3189,11 +3189,12 @@ class Path(MutableSequence): # Note: In browsers AFAIK, zero radius arcs are displayed # as lines (see "examples/zero-radius-arcs.svg"). # Thus zero radius arcs are substituted for lines here. - warn(f'Replacing degenerate (zero radius) Arc with a ' - f'Line: Arc(start={current_pos}, radius={radius}, ' - f'rotation={rotation}, large_arc={arc}, ' - f'sweep={sweep}, end={end}) -> ' - f'Line(start={current_pos}, end={end})') + warn('Replacing degenerate (zero radius) Arc with a Line: ' + 'Arc(start={}, radius={}, rotation={}, large_arc={}, ' + 'sweep={}, end={})'.format( + current_pos, radius, rotation, arc, sweep, end) + + ' --> Line(start={}, end={})' + ''.format(current_pos, end)) segments.append(Line(current_pos, end)) else: segments.append(