From b2b302b348f0b711557961c70744c818cff664f0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 4 Sep 2023 20:07:25 +0300 Subject: [PATCH] Style: Fix flake8 E401 multiple imports on one line --- Robots/bkmk_rforking.py | 3 ++- Robots/bkmk_rforking_sub.py | 3 ++- Robots/bkmk_rurllib.py | 7 +++++-- bkmk-add.py | 5 ++++- bkmk2db.py | 4 +++- bkmk_objects.py | 3 ++- check_urls.py | 3 ++- db2bkmk.py | 3 ++- 8 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Robots/bkmk_rforking.py b/Robots/bkmk_rforking.py index c5bbb62..30133dc 100644 --- a/Robots/bkmk_rforking.py +++ b/Robots/bkmk_rforking.py @@ -10,7 +10,8 @@ __license__ = "GNU GPL" __all__ = ['robot_forking'] -import sys, os +import os +import sys try: import cPickle as pickle diff --git a/Robots/bkmk_rforking_sub.py b/Robots/bkmk_rforking_sub.py index cb3ca5c..4190f28 100755 --- a/Robots/bkmk_rforking_sub.py +++ b/Robots/bkmk_rforking_sub.py @@ -12,7 +12,8 @@ __license__ = "GNU GPL" __all__ = [] -import sys, os +import os +import sys lib_dir = os.path.normpath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir)) sys.path.append(lib_dir) # for bkmk_objects.py diff --git a/Robots/bkmk_rurllib.py b/Robots/bkmk_rurllib.py index 0045f2d..29421f1 100644 --- a/Robots/bkmk_rurllib.py +++ b/Robots/bkmk_rurllib.py @@ -11,8 +11,11 @@ __license__ = "GNU GPL" __all__ = ['robot_urllib'] -import sys, os -import time, urllib +import os +import sys +import time +import urllib + from Robots.bkmk_robot_base import robot_base, get_error diff --git a/bkmk-add.py b/bkmk-add.py index 01ed29f..39ef666 100755 --- a/bkmk-add.py +++ b/bkmk-add.py @@ -9,7 +9,10 @@ __author__ = "Oleg Broytman " __copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design" __license__ = "GNU GPL" -import sys, os, time +import os +import sys +import time + from bkmk_objects import Bookmark from robots import robot diff --git a/bkmk2db.py b/bkmk2db.py index 483c0a5..e274108 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -5,8 +5,10 @@ This file is a part of Bookmarks database and Internet robot. """ from __future__ import print_function -import sys, os from getopt import getopt +import os +import sys + from bkmk_parser import BkmkParser diff --git a/bkmk_objects.py b/bkmk_objects.py index f66272b..7777ba3 100644 --- a/bkmk_objects.py +++ b/bkmk_objects.py @@ -14,7 +14,8 @@ __all__ = ['Folder', 'Bookmark', 'Ruler', 'Walker', 'Writer', 'Robot', ] -import os, urllib +import os +import urllib BKMK_FORMAT = os.environ.get("BKMK_FORMAT", "MOZILLA") diff --git a/check_urls.py b/check_urls.py index 8eba42c..bf8df1a 100755 --- a/check_urls.py +++ b/check_urls.py @@ -5,7 +5,8 @@ This file is a part of Bookmarks database and Internet robot. """ from __future__ import print_function -import sys, os +import os +import sys __author__ = "Oleg Broytman " diff --git a/db2bkmk.py b/db2bkmk.py index 04b923f..897aabc 100755 --- a/db2bkmk.py +++ b/db2bkmk.py @@ -81,8 +81,9 @@ def run(): del transl_db # Save few bytes of memory from bkmk_objects import Walker + class Transl(Walker): - def __init__(self, transl_d): + def __init__(self, transl_d): # noqa: E306 expected 1 blank line self.transl_d = transl_d def bookmark(self, b, level): -- 2.39.5