mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
pep8 letshelp-letsencrypt
This commit is contained in:
@@ -151,7 +151,7 @@ def safe_config_file(config_file):
|
||||
empty_or_all_comments = False
|
||||
if line.startswith("-----BEGIN"):
|
||||
return False
|
||||
elif not ":" in line:
|
||||
elif ":" not in line:
|
||||
possible_password_file = False
|
||||
# If file isn't empty or commented out and could be a password file,
|
||||
# don't include it in selection. It is safe to include the file if
|
||||
|
||||
@@ -141,7 +141,7 @@ class LetsHelpApacheTest(unittest.TestCase):
|
||||
@mock.patch(_MODULE_NAME + ".subprocess.Popen")
|
||||
def test_locate_config(self, mock_popen):
|
||||
mock_popen().communicate.side_effect = [
|
||||
OSError, ("bad_output", None), (_COMPILE_SETTINGS, None),]
|
||||
OSError, ("bad_output", None), (_COMPILE_SETTINGS, None)]
|
||||
|
||||
self.assertRaises(
|
||||
SystemExit, letshelp_le_apache.locate_config, "ctl")
|
||||
|
||||
Reference in New Issue
Block a user