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:
authorSeth Schoen <schoen@eff.org>2016-08-06 01:07:35 +0300
committerSeth Schoen <schoen@eff.org>2016-08-06 01:07:35 +0300
commit2cd2228ca6a8e3e2b311d5974afa816084695bb7 (patch)
tree39f0dafaa9817a60cfd16cfb50be9b7acc2d6eed /certbot-compatibility-test
parent353cb6e6c627e680c8e573a101a3548c193fc769 (diff)
starts_with is actually called startswith
Diffstat (limited to 'certbot-compatibility-test')
-rw-r--r--certbot-compatibility-test/certbot_compatibility_test/configurators/nginx/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/certbot-compatibility-test/certbot_compatibility_test/configurators/nginx/common.py b/certbot-compatibility-test/certbot_compatibility_test/configurators/nginx/common.py
index 779ba26a7..9fbb538e8 100644
--- a/certbot-compatibility-test/certbot_compatibility_test/configurators/nginx/common.py
+++ b/certbot-compatibility-test/certbot_compatibility_test/configurators/nginx/common.py
@@ -129,7 +129,7 @@ def _get_names(config):
for root, _dirs, files in os.walk(config):
for this_file in files:
for line in open(os.path.join(root, this_file)):
- if line.strip().starts_with("server_name"):
+ if line.strip().startswith("server_name"):
names = line.partition("server_name")[2].rstrip(";")
[all_names.add(n) for n in names.split()]
non_ip_names = set(n for n in all_names if not util.IP_REGEX.match(n))