# HG changeset patch # User Igor Kirsanov # Date 1463323528 0 # Node ID f1bcf8940a976051041896a849507843d9cbca37 # Parent fc40924ac59b10073a69e96b3b28935e2d68b986 whois.py fix python3 error: if b'with "=xxx"' in response: TypeError: 'in ' requires string as left operand, not bytes 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)