remove unneccessary check of len on match_parts

While getting the best match the function _exact_match is called with
the candidate server names as name. Then name.split('.') is called which
can never have a length of 0.
This commit is contained in:
Robert Habermann 2015-08-09 11:02:21 +02:00
parent 74b677248d
commit 95cc031339

View file

@ -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 != '':