From d5365dbb38d672f256a5e7a2f949c789bc5793ce Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 2 Sep 2023 14:00:24 +0300 Subject: [PATCH] Style: Fix flake8 warning E116 unexpected indentation (comment) --- Robots/bkmk_rurllib.py | 7 ++++--- db2bkmk.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Robots/bkmk_rurllib.py b/Robots/bkmk_rurllib.py index c7324e3..0188963 100644 --- a/Robots/bkmk_rurllib.py +++ b/Robots/bkmk_rurllib.py @@ -5,7 +5,7 @@ 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__ = ['robot_urllib'] @@ -116,8 +116,9 @@ class robot_urllib(robot_base): def get_ftp_welcome(self): global ftpcache_key _welcome = urllib._urlopener.ftpcache[ftpcache_key].ftp.welcome - ftpcache_key = None # I am assuming there are no duplicate ftp URLs in db. - # If there are - ftpcache_key in prev line is invalid. + # I am assuming there are no duplicate ftp URLs in db. + # If there are - ftpcache_key in next line is invalid. + ftpcache_key = None return _welcome def finish_check_url(self, bookmark): diff --git a/db2bkmk.py b/db2bkmk.py index e0ac1c1..78618e7 100755 --- a/db2bkmk.py +++ b/db2bkmk.py @@ -5,7 +5,7 @@ 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" import sys @@ -67,7 +67,7 @@ def run(): from m_lib.flad import fladm transl_db = fladm.load_from_file(transl_name, fladm.check_record, ["URL1", "URL2"], [""]) - # This prevents any other key to appear in transl_db ^ + # This prevents any other key to appear in transl_db ^ # Generate translation dictionary (hash table) if transl == 1: -- 2.39.2