Skip to content

Commit

Permalink
Improve FilteringLinkExtractor.__new__
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Dec 18, 2019
1 parent a4ef975 commit ee9881d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/linkextractors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __new__(cls, *args, **kwargs):
warn('scrapy.linkextractors.FilteringLinkExtractor is deprecated, '
'please use scrapy.linkextractors.LinkExtractor instead',
ScrapyDeprecationWarning, stacklevel=2)
return super(FilteringLinkExtractor, cls).__new__(cls)
return super().__new__(cls, *args, **kwargs)

def __init__(self, link_extractor, allow, deny, allow_domains, deny_domains,
restrict_xpaths, canonicalize, deny_extensions, restrict_css, restrict_text):
Expand Down

0 comments on commit ee9881d

Please sign in to comment.