From 453e0c0e476fbdc1b0eaf32dbf000590bb9dbbde Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 6 Aug 2024 19:18:36 +0300 Subject: [PATCH] Style(bkmk-add): Rename `_robot` -> `robot` --- bkmk-add.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"): -- 2.39.5