mirror of https://github.com/scrapy/scrapy.git
fix to default parameter (must be tuple not string)
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40870
This commit is contained in:
parent
de13bbe7f5
commit
14900a7452
|
|
@ -41,7 +41,7 @@ class RegexLinkExtractor(LinkExtractor):
|
|||
"""
|
||||
|
||||
def __init__(self, allow=(), deny=(), allow_domains=(), deny_domains=(), restrict_xpaths=(),
|
||||
tags=('a', 'area'), attrs=('href'), canonicalize=True, unique=True):
|
||||
tags=('a', 'area'), attrs=('href',), canonicalize=True, unique=True):
|
||||
self.allow_res = [x if isinstance(x, _re_type) else re.compile(x) for x in allow]
|
||||
self.deny_res = [x if isinstance(x, _re_type) else re.compile(x) for x in deny]
|
||||
self.allow_domains = set(allow_domains)
|
||||
|
|
|
|||
Loading…
Reference in New Issue