mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Merge pull request #212 from cjmayo/python3_02
{python3_02} Python3: fix regexp format
This commit is contained in:
commit
5d26d2d93e
1 changed files with 4 additions and 4 deletions
|
|
@ -82,11 +82,11 @@ WmlTags = {
|
|||
|
||||
|
||||
# matcher for <meta http-equiv=refresh> tags
|
||||
refresh_re = re.compile(ur"(?i)^\d+;\s*url=(?P<url>.+)$")
|
||||
_quoted_pat = ur"('[^']+'|\"[^\"]+\"|[^\)\s]+)"
|
||||
css_url_re = re.compile(ur"url\(\s*(?P<url>%s)\s*\)" % _quoted_pat)
|
||||
refresh_re = re.compile(r"(?i)^\d+;\s*url=(?P<url>.+)$")
|
||||
_quoted_pat = r"('[^']+'|\"[^\"]+\"|[^\)\s]+)"
|
||||
css_url_re = re.compile(r"url\(\s*(?P<url>%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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue