1. Jason R. Coombs
  2. jaraco.net


jaraco  committed 1cc10ad

Fixed issue with whois where the handler class was not being properly returned

  • Participants
  • Parent commits a4538df
  • Branches default

Comments (0)

Files changed (1)

File jaraco/net/whois.py

View file
 		that matches the query."""
 		query = query.lower()
 		handlers = WhoisHandler._leaf_classes
-		matches = filter(None, map(lambda c: c._query_matches_services(query), handlers))
+		matches = [c for c in handlers if c._query_matches_services(query)]
 		if not len(matches) == 1:
 			error = [
 				'Domain for %s is not serviced by this server.',