Merged in leotop/pywhois/leotop/whoispy-fix-python3-error-if-bwith-xxx-i-1463323526280 (pull request #9)
authorRichard Penman <richardbp@gmail.com>
Thu, 02 Jun 2016 13:58:54 -0700
changeset 91 4382433c1fe0
parent 89 0b2e70f3f537 (current diff)
parent 90 f1bcf8940a97 (diff)
child 93 acdc2cb09f60
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)