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:
samus_ 2009-02-19 04:21:49 +00:00
parent de13bbe7f5
commit 14900a7452
1 changed files with 1 additions and 1 deletions

View File

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