whois.py fix python3 error: if b'with "=xxx"' in response:
TypeError: 'in <string>' requires string as left operand, not bytes
--- 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)