Browse Source

Merge "Clean imports in code"

tags/1.8.0
Zuul 1 year ago
parent
commit
d15c10e699
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sitemap/generator/spiders/sitemap_file.py

+ 2
- 2
sitemap/generator/spiders/sitemap_file.py View File

@@ -18,7 +18,7 @@ except ImportError:
18 18
     import urllib.parse as urlparse
19 19
 
20 20
 from scrapy import item
21
-from scrapy.linkextractors import LinkExtractor
21
+from scrapy import linkextractors
22 22
 from scrapy import spiders
23 23
 
24 24
 
@@ -43,7 +43,7 @@ class SitemapSpider(spiders.CrawlSpider):
43 43
 
44 44
     rules = [
45 45
         spiders.Rule(
46
-            LinkExtractor(
46
+            linkextractors.LinkExtractor(
47 47
                 allow=[
48 48
                     r'.*\.html',
49 49
                     r'.*\.pdf',

Loading…
Cancel
Save