| author | Richard Penman |
| Wed, 03 Aug 2016 21:28:29 +0100 | |
| changeset 108 | 4fb2273c5821 |
| parent 107 | 58817891026b |
| child 109 | f9884d862ac0 |
| whois/whois.py | file | annotate | diff | comparison | revisions |
--- a/whois/whois.py Wed Aug 03 17:17:41 2016 +0000 +++ b/whois/whois.py Wed Aug 03 21:28:29 2016 +0100 @@ -110,7 +110,7 @@ query_bytes = '=' + query else: query_bytes = query - s.send((query_bytes + "\r\n").encode('idna')) + s.send((query_bytes).encode('idna') + b"\r\n") # recv returns bytes while True: d = s.recv(4096)