From 2cd2228ca6a8e3e2b311d5974afa816084695bb7 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Fri, 5 Aug 2016 15:07:35 -0700 Subject: [PATCH] starts_with is actually called startswith --- .../certbot_compatibility_test/configurators/nginx/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))