diff -r fc40924ac59b -r f1bcf8940a97 whois/whois.py --- a/whois/whois.py Thu Mar 17 15:37:34 2016 +0100 +++ b/whois/whois.py Sun May 15 14:45:28 2016 +0000 @@ -121,7 +121,7 @@ else: nhost = None response = response.decode('utf-8', errors='replace') - if b'with "=xxx"' in response: + if 'with "=xxx"' in response: return self.whois(query, hostname, flags, True) if flags & NICClient.WHOIS_RECURSE and nhost is None: nhost = self.findwhois_server(response, hostname, query)