# HG changeset patch # User Richard Penman # Date 1464901134 25200 # Node ID 4382433c1fe0a5aac4363373cd0ec3b0612155cb # Parent 0b2e70f3f53746e477c88978c54221ab6cabd85c# Parent f1bcf8940a976051041896a849507843d9cbca37 Merged in leotop/pywhois/leotop/whoispy-fix-python3-error-if-bwith-xxx-i-1463323526280 (pull request #9) whois.py fix python3 error: if b'with "=xxx"' in response: diff -r 0b2e70f3f537 -r 4382433c1fe0 whois/whois.py --- a/whois/whois.py Thu Jun 02 13:57:58 2016 -0700 +++ b/whois/whois.py Thu Jun 02 13:58:54 2016 -0700 @@ -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)