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:
--- 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)