]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style(bkmk-add): Rename `_robot` -> `robot`
authorOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2024 16:18:36 +0000 (19:18 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2024 17:53:32 +0000 (20:53 +0300)
bkmk-add.py

index 768af058672e8d23a78ac956c8f3e8b302131bdb..68c3dad574c62c2643b6101064edb7d4cb4b8ae9 100755 (executable)
@@ -6,7 +6,7 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__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"):