1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 10:23:41 +00:00

removed: Unused code

This commit is contained in:
Pengyu CHEN 2015-11-19 00:38:05 +08:00
parent 94486bb294
commit 751155eade

View File

@ -124,9 +124,6 @@ class SgmlLinkExtractor(FilteringLinkExtractor):
restrict_xpaths=restrict_xpaths, restrict_css=restrict_css,
canonicalize=canonicalize, deny_extensions=deny_extensions)
# FIXME: was added to fix a RegexLinkExtractor testcase
self.base_url = None
def extract_links(self, response):
base_url = None
if self.restrict_xpaths: