From: Oleg Broytman Date: Tue, 6 Aug 2024 16:18:36 +0000 (+0300) Subject: Style(bkmk-add): Rename `_robot` -> `robot` X-Git-Tag: 5.6.0~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=453e0c0e476fbdc1b0eaf32dbf000590bb9dbbde;p=bookmarks_db.git Style(bkmk-add): Rename `_robot` -> `robot` --- diff --git a/bkmk-add.py b/bkmk-add.py index 768af05..68c3dad 100755 --- a/bkmk-add.py +++ b/bkmk-add.py @@ -6,7 +6,7 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design" +__copyright__ = "Copyright (C) 2002-2024 PhiloSoft Design" __license__ = "GNU GPL" import sys @@ -56,11 +56,10 @@ def run(): bookmark.name = '' bookmark.parent = None - global _robot print("Using", robot) - _robot = robot(None) + robot = robot(None) - _robot.check_url(bookmark) # get real title and last modified date + robot.check_url(bookmark) # get real title and last modified date if title: # forced title bookmark.name = title elif hasattr(bookmark, "real_title"):