summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-03-08 10:53:45 +0000
committerGerrit Code Review <review@openstack.org>2018-03-08 10:53:45 +0000
commitd15c10e699ee5d36752764c6fe776a5b9847d94d (patch)
tree4d25a0bebe8bbbb459b7efb13aa8530bb8a20a69
parenta22003c0c24f17444d412c3287af0c04d7504ee1 (diff)
parent8625096bce3fbc62baf4f60b358210672d79d9c7 (diff)
Merge "Clean imports in code"
-rw-r--r--sitemap/generator/spiders/sitemap_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sitemap/generator/spiders/sitemap_file.py b/sitemap/generator/spiders/sitemap_file.py
index 6da9564..fa21266 100644
--- a/sitemap/generator/spiders/sitemap_file.py
+++ b/sitemap/generator/spiders/sitemap_file.py
@@ -18,7 +18,7 @@ except ImportError:
18 import urllib.parse as urlparse 18 import urllib.parse as urlparse
19 19
20from scrapy import item 20from scrapy import item
21from scrapy.linkextractors import LinkExtractor 21from scrapy import linkextractors
22from scrapy import spiders 22from scrapy import spiders
23 23
24 24
@@ -43,7 +43,7 @@ class SitemapSpider(spiders.CrawlSpider):
43 43
44 rules = [ 44 rules = [
45 spiders.Rule( 45 spiders.Rule(
46 LinkExtractor( 46 linkextractors.LinkExtractor(
47 allow=[ 47 allow=[
48 r'.*\.html', 48 r'.*\.html',
49 r'.*\.pdf', 49 r'.*\.pdf',