Browse Source

Clean imports in code

In some part in the code we import objects. In the Openstack style guidelines
they recommend to import only modules. [1]: "Do not import objects, only modules".

[1] https://docs.openstack.org/hacking/0.10.3/

Change-Id: I49452e41f9674e6ebfcc1577d59d21750e957677
tags/1.8.0
Nguyen Hung Phuong 1 year ago
parent
commit
8625096bce
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:
import urllib.parse as urlparse

from scrapy import item
from scrapy.linkextractors import LinkExtractor
from scrapy import linkextractors
from scrapy import spiders


@@ -43,7 +43,7 @@ class SitemapSpider(spiders.CrawlSpider):

rules = [
spiders.Rule(
LinkExtractor(
linkextractors.LinkExtractor(
allow=[
r'.*\.html',
r'.*\.pdf',

Loading…
Cancel
Save