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):