]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Fix flake8 F401 module imported but unused
authorOleg Broytman <phd@phdru.name>
Mon, 11 Sep 2023 13:52:04 +0000 (16:52 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:28:41 +0000 (13:28 +0300)
Robots/bkmk_rurllib.py
Writers/bkmk_wflad_err.py
Writers/bkmk_whtml.py
bkmk-add.py
check_urls.py
parse_html/bkmk_ph_beautifulsoup4.py

index f71a8d2bb55d22f5f823e44fae765abc800c7e32..55e0037e8999e261010d095af4eb1a9b61ad9852 100644 (file)
@@ -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
index a48484c4aea599d835b012fdbd13c2cab73c950e..04ccc29cf314af656928ab0acb6bb73a13f92ea9 100644 (file)
@@ -4,13 +4,12 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__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
 
 
index 058053d01131f5bb6057f7ca6499e4cb1de79993..dd43b0d20b2bcd1be9b94b93b2657e9015811235 100644 (file)
@@ -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
 
 
index a21a1b131570ab94e953d45b9c15b24238f3b8da..37933353c300c909a94c984bdc0f6cdd5de4a1f3 100755 (executable)
@@ -9,7 +9,6 @@ __author__ = "Oleg Broytman <phd@phdru.name>"
 __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"):
index bdf1ccec25a22ec9e1c420b943d17e5c626f95ee..e60cefe9edf394ac7f213f19cd05c10b18137da9 100755 (executable)
@@ -5,7 +5,6 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 from __future__ import print_function
-import os
 import sys
 
 
index 1ce543e828936284bc469f6037bf4f0a77ca14c4..e1662ed9e84b9866fceef5f72c0744b35b870111 100644 (file)
@@ -11,7 +11,6 @@ __license__ = "GNU GPL"
 __all__ = ['parse_html']
 
 
-import re
 from bs4 import BeautifulSoup
 from .bkmk_ph_util import HTMLParser