# HG changeset patch # User Mario D. Santana # Date 1460733702 21600 # Node ID 4177eba88c223b0cd141c3f1dd705494445124fa # Parent 8302aa7110f1237c018e7de019dc0cdb6b2c8db7 Fixed python3 regression in response handling. diff -r 8302aa7110f1 -r 4177eba88c22 whois/whois.py --- a/whois/whois.py Fri Apr 15 09:20:53 2016 -0600 +++ b/whois/whois.py Fri Apr 15 09:21:42 2016 -0600 @@ -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)