From 212fa6f16b9a7ce6cb59685934c81e8694b3a9e5 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 8 Aug 2023 11:00:25 +0200 Subject: [PATCH] Pacify pylint --- pelican/plugins/linkbacks/linkbacks.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pelican/plugins/linkbacks/linkbacks.py b/pelican/plugins/linkbacks/linkbacks.py index 04bbd6c..8e6e202 100644 --- a/pelican/plugins/linkbacks/linkbacks.py +++ b/pelican/plugins/linkbacks/linkbacks.py @@ -4,19 +4,24 @@ except ImportError: # => Python 3.6 from contextlib import suppress as nullcontext from datetime import datetime -import json, logging, os, xmlrpc.client, warnings +import json +import logging +import os from os import makedirs from os.path import splitext from ssl import CERT_NONE, SSLError +import xmlrpc.client +import warnings from urllib.parse import urljoin +from urllib3.exceptions import InsecureRequestWarning, HTTPError from bs4 import BeautifulSoup -from pelican import signals -from pelican.generators import ArticlesGenerator import requests from requests.exceptions import RequestException from requests.utils import parse_header_links -from urllib3.exceptions import InsecureRequestWarning, HTTPError + +from pelican import signals +from pelican.generators import ArticlesGenerator BS4_HTML_PARSER = 'html.parser' # Alt: 'html5lib', 'lxml', 'lxml-xml'