From: Oleg Broytman Date: Mon, 11 Sep 2023 13:52:04 +0000 (+0300) Subject: Style: Fix flake8 F401 module imported but unused X-Git-Tag: 5.0.0~76 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=22d567ee3a7eac29b4c83eb1344f7bae4ef0bdb1;p=bookmarks_db.git Style: Fix flake8 F401 module imported but unused --- diff --git a/Robots/bkmk_rurllib.py b/Robots/bkmk_rurllib.py index f71a8d2..55e0037 100644 --- a/Robots/bkmk_rurllib.py +++ b/Robots/bkmk_rurllib.py @@ -11,9 +11,7 @@ __license__ = "GNU GPL" __all__ = ['robot_urllib'] -import os import sys -import time import urllib from Robots.bkmk_robot_base import robot_base, get_error diff --git a/Writers/bkmk_wflad_err.py b/Writers/bkmk_wflad_err.py index a48484c..04ccc29 100644 --- a/Writers/bkmk_wflad_err.py +++ b/Writers/bkmk_wflad_err.py @@ -4,13 +4,12 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2023 PhiloSoft Design" __license__ = "GNU GPL" __all__ = ['writer_flad_err'] -import time from bkmk_wflad import writer_flad diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index 058053d..dd43b0d 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -10,7 +10,6 @@ __license__ = "GNU GPL" __all__ = ['writer_html'] -from m_lib.defenc import default_encoding from bkmk_objects import Writer, BKMK_FORMAT, quote_title diff --git a/bkmk-add.py b/bkmk-add.py index a21a1b1..3793335 100755 --- a/bkmk-add.py +++ b/bkmk-add.py @@ -9,7 +9,6 @@ __author__ = "Oleg Broytman " __copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design" __license__ = "GNU GPL" -import os import sys import time @@ -57,10 +56,10 @@ def run(): bookmark.name = '' bookmark.parent = None - global robot - robot = robot(None) + global _robot + _robot = robot(None) - if robot.check_url(bookmark): # get real title and last modified date + if _robot.check_url(bookmark): # get real title and last modified date if title: # forced title bookmark.name = title elif hasattr(bookmark, "real_title"): diff --git a/check_urls.py b/check_urls.py index bdf1cce..e60cefe 100755 --- a/check_urls.py +++ b/check_urls.py @@ -5,7 +5,6 @@ This file is a part of Bookmarks database and Internet robot. """ from __future__ import print_function -import os import sys diff --git a/parse_html/bkmk_ph_beautifulsoup4.py b/parse_html/bkmk_ph_beautifulsoup4.py index 1ce543e..e1662ed 100644 --- a/parse_html/bkmk_ph_beautifulsoup4.py +++ b/parse_html/bkmk_ph_beautifulsoup4.py @@ -11,7 +11,6 @@ __license__ = "GNU GPL" __all__ = ['parse_html'] -import re from bs4 import BeautifulSoup from .bkmk_ph_util import HTMLParser