From a16a060c27214cb292d086025b3bee689abadaae Mon Sep 17 00:00:00 2001 From: Kaspar Emanuel Date: Sat, 6 May 2023 19:33:31 +0100 Subject: [PATCH] Fix invalid escape sequences in strings --- svgpathtools/path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 5903efe..fd00785 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -43,8 +43,8 @@ except NameError: COMMANDS = set('MmZzLlHhVvCcSsQqTtAa') UPPERCASE = set('MZLHVCSQTA') -COMMAND_RE = re.compile("([MmZzLlHhVvCcSsQqTtAa])") -FLOAT_RE = re.compile("[-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?") +COMMAND_RE = re.compile(r"([MmZzLlHhVvCcSsQqTtAa])") +FLOAT_RE = re.compile(r"[-+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?") # Default Parameters ########################################################## @@ -1394,7 +1394,7 @@ class CubicBezier(object): class Arc(object): def __init__(self, start, radius, rotation, large_arc, sweep, end, autoscale_radius=True): - """ + r""" This should be thought of as a part of an ellipse connecting two points on that ellipse, start and end. Parameters