From fe5e7a023e734fb5ba47b0e68f76336b4bd7fe14 Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Fri, 26 Jun 2015 12:11:49 -0400 Subject: [PATCH] Fix pep8 E701 multiple statements on one line (colon) --- fail2ban/tests/misctestcase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fail2ban/tests/misctestcase.py b/fail2ban/tests/misctestcase.py index a682b63f..952c0e1c 100644 --- a/fail2ban/tests/misctestcase.py +++ b/fail2ban/tests/misctestcase.py @@ -66,7 +66,8 @@ class SetupTest(unittest.TestCase): " -- cannot locate setup.py") def testSetupInstallRoot(self): - if not self.setup: return # if verbose skip didn't work out + if not self.setup: + return # if verbose skip didn't work out tmp = tempfile.mkdtemp() try: os.system("%s %s install --root=%s >/dev/null" @@ -136,8 +137,10 @@ class TestsUtilsTest(unittest.TestCase): raise ValueError() def deep_function(i): - if i: deep_function(i-1) - else: func_raise() + if i: + deep_function(i-1) + else: + func_raise() try: print deep_function(3)