Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'letshelp-certbot/letshelp_certbot')
-rwxr-xr-xletshelp-certbot/letshelp_certbot/apache.py4
-rw-r--r--letshelp-certbot/letshelp_certbot/apache_test.py5
-rw-r--r--letshelp-certbot/letshelp_certbot/magic_typing.py1
3 files changed, 5 insertions, 5 deletions
diff --git a/letshelp-certbot/letshelp_certbot/apache.py b/letshelp-certbot/letshelp_certbot/apache.py
index 50f3c5ef6..ebe4e3671 100755
--- a/letshelp-certbot/letshelp_certbot/apache.py
+++ b/letshelp-certbot/letshelp_certbot/apache.py
@@ -74,7 +74,7 @@ def make_and_verify_selection(server_root, temp_dir):
ans = six.moves.input("(Y)es/(N)o: ").lower()
if ans.startswith("y"):
return
- elif ans.startswith("n"):
+ if ans.startswith("n"):
sys.exit("Your files were not submitted")
@@ -159,7 +159,7 @@ def safe_config_file(config_file):
empty_or_all_comments = False
if line.startswith("-----BEGIN"):
return False
- elif ":" not in line:
+ if ":" 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
diff --git a/letshelp-certbot/letshelp_certbot/apache_test.py b/letshelp-certbot/letshelp_certbot/apache_test.py
index a1115bc06..0853046b4 100644
--- a/letshelp-certbot/letshelp_certbot/apache_test.py
+++ b/letshelp-certbot/letshelp_certbot/apache_test.py
@@ -2,19 +2,18 @@
import argparse
import functools
import os
-import pkg_resources
import subprocess
import tarfile
import tempfile
import unittest
-import mock
# six is used in mock.patch()
+import mock
+import pkg_resources
import six # pylint: disable=unused-import
import letshelp_certbot.apache as letshelp_le_apache
-
_PARTIAL_CONF_PATH = os.path.join("mods-available", "ssl.load")
_PARTIAL_LINK_PATH = os.path.join("mods-enabled", "ssl.load")
_CONFIG_FILE = pkg_resources.resource_filename(
diff --git a/letshelp-certbot/letshelp_certbot/magic_typing.py b/letshelp-certbot/letshelp_certbot/magic_typing.py
index 471b8dfa9..5a6358c69 100644
--- a/letshelp-certbot/letshelp_certbot/magic_typing.py
+++ b/letshelp-certbot/letshelp_certbot/magic_typing.py
@@ -1,6 +1,7 @@
"""Shim class to not have to depend on typing module in prod."""
import sys
+
class TypingClass(object):
"""Ignore import errors by getting anything"""
def __getattr__(self, name):