From 2c6411d68e1027423a43bfa120c36575cd2ce712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Fri, 5 Jan 2018 17:22:31 +0100 Subject: [PATCH] Python3: fix regexp format --- linkcheck/htmlutil/linkparse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linkcheck/htmlutil/linkparse.py b/linkcheck/htmlutil/linkparse.py index 9978e6aa..ea4e2dfc 100644 --- a/linkcheck/htmlutil/linkparse.py +++ b/linkcheck/htmlutil/linkparse.py @@ -82,11 +82,11 @@ WmlTags = { # matcher for tags -refresh_re = re.compile(ur"(?i)^\d+;\s*url=(?P.+)$") -_quoted_pat = ur"('[^']+'|\"[^\"]+\"|[^\)\s]+)" -css_url_re = re.compile(ur"url\(\s*(?P%s)\s*\)" % _quoted_pat) +refresh_re = re.compile(r"(?i)^\d+;\s*url=(?P.+)$") +_quoted_pat = r"('[^']+'|\"[^\"]+\"|[^\)\s]+)" +css_url_re = re.compile(r"url\(\s*(?P%s)\s*\)" % _quoted_pat) swf_url_re = re.compile("(?i)%s" % urlutil.safe_url_pattern) -c_comment_re = re.compile(ur"/\*.*?\*/", re.DOTALL) +c_comment_re = re.compile(r"/\*.*?\*/", re.DOTALL) def strip_c_comments (text):