From 75bacbc8e6c7613344e2bdf52de09499b40b469f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 9 May 2017 23:07:06 +0300 Subject: [PATCH] Python 3.6 invalid escape sequence deprecation fix (#144) (see https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior) --- scour/scour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scour/scour.py b/scour/scour.py index 06f463e..6081a04 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -1411,7 +1411,7 @@ def removeDuplicateGradients(doc): # for each element that referenced the gradient we are going to replace dup_id with master_id dup_id = dupGrad.getAttribute('id') - funcIRI = re.compile('url\([\'"]?#' + dup_id + '[\'"]?\)') # matches url(#a), url('#a') and url("#a") + funcIRI = re.compile('url\\([\'"]?#' + dup_id + '[\'"]?\\)') # matches url(#a), url('#a') and url("#a") for elem in referencedIDs[dup_id][1]: # find out which attribute referenced the duplicate gradient for attr in ['fill', 'stroke']: