Fixed python3 regression in response handling.
authorMario D. Santana <mario@elorangutan.com>
Fri, 15 Apr 2016 09:21:42 -0600
changeset 96 4177eba88c22
parent 95 8302aa7110f1
child 97 44522cd37b07
Fixed python3 regression in response handling.
whois/whois.py
--- a/whois/whois.py	Fri Apr 15 09:20:53 2016 -0600
+++ b/whois/whois.py	Fri Apr 15 09:21:42 2016 -0600
@@ -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)