Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_names(self):
"""Return a set of all names."""
all_names = set()
all_names.update(self.aliases)
# Strip out any scheme:// and field from servername
if self.name is not None:
all_names.add(VirtualHost.strip_name.findall(self.name)[0])
return all_names
def get_names(self):
"""Return a set of all names."""
all_names = set()
all_names.update(self.aliases)
# Strip out any scheme:// and field from servername
if self.name is not None:
all_names.add(VirtualHost.strip_name.findall(self.name)[0])
return all_names