diff --git a/docs/contributing.rst b/docs/contributing.rst index 6449c7994..2c498cf68 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -52,7 +52,7 @@ The following tools are there to help you: before submitting a new pull request. - ``tox -e cover`` checks the test coverage only. Calling the - ``./tox-cover.sh`` script directly might be a bit quicker, though. + ``./tox.cover.sh`` script directly might be a bit quicker, though. - ``tox -e lint`` checks the style of the whole project, while ``pylint --rcfile=.pylintrc path`` will check a single file or diff --git a/letsencrypt-nginx/letsencrypt_nginx/parser.py b/letsencrypt-nginx/letsencrypt_nginx/parser.py index dc82918f9..ef87cc653 100644 --- a/letsencrypt-nginx/letsencrypt_nginx/parser.py +++ b/letsencrypt-nginx/letsencrypt_nginx/parser.py @@ -387,9 +387,6 @@ def _wildcard_match(target_name, name, start): parts.reverse() match_parts.reverse() - if len(match_parts) == 0: - return False - # The first part must be a wildcard or blank, e.g. '.eff.org' first = match_parts.pop(0) if first != '*' and first != '':