From c7e203b20f83c24aaf9123924df30f421bc00749 Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Fri, 3 Jul 2015 13:02:50 -0400 Subject: [PATCH] Fix PEP8 E401 - multiple imports on one line --- bin/fail2ban-client | 13 +++++++++++-- bin/fail2ban-regex | 10 +++++++++- bin/fail2ban-server | 4 +++- bin/fail2ban-testcases | 5 ++++- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/bin/fail2ban-client b/bin/fail2ban-client index 866a5287..90c67772 100755 --- a/bin/fail2ban-client +++ b/bin/fail2ban-client @@ -22,8 +22,17 @@ __author__ = "Cyril Jaquier" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import sys, string, os, pickle, re, logging, signal -import getopt, time, shlex, socket +import getopt +import logging +import os +import pickle +import re +import shlex +import signal +import socket +import string +import sys +import time from fail2ban.version import version from fail2ban.protocol import printFormatted diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex index 08bce1ee..b7b0579f 100755 --- a/bin/fail2ban-regex +++ b/bin/fail2ban-regex @@ -29,7 +29,15 @@ __author__ = "Fail2Ban Developers" __copyright__ = "Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko" __license__ = "GPL" -import getopt, sys, time, logging, os, locale, shlex, time, urllib +import getopt +import locale +import logging +import os +import shlex +import sys +import time +import time +import urllib from optparse import OptionParser, Option from ConfigParser import NoOptionError, NoSectionError, MissingSectionHeaderError diff --git a/bin/fail2ban-server b/bin/fail2ban-server index ec0c0dbe..f522f418 100755 --- a/bin/fail2ban-server +++ b/bin/fail2ban-server @@ -22,7 +22,9 @@ __author__ = "Cyril Jaquier" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import getopt, sys, os +import getopt +import os +import sys from fail2ban.version import version from fail2ban.server.server import Server diff --git a/bin/fail2ban-testcases b/bin/fail2ban-testcases index 475aa40b..dd6547a5 100755 --- a/bin/fail2ban-testcases +++ b/bin/fail2ban-testcases @@ -25,7 +25,10 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2012- Yaroslav Halchenko" __license__ = "GPL" import logging -import unittest, sys, time, os +import os +import sys +import time +import unittest # Check if local fail2ban module exists, and use if it exists by # modifying the path. This is such that tests can be used in dev