whois/whois.py
changeset 124 dfa8657bdefc
parent 123 03c72d0d1182
child 132 7666f0765fe4
child 133 29e9190319e5
equal deleted inserted replaced
123:03c72d0d1182 124:dfa8657bdefc
   109                 pass  # Already Unicode (python3's error)
   109                 pass  # Already Unicode (python3's error)
   110 
   110 
   111             if hostname == NICClient.DENICHOST:
   111             if hostname == NICClient.DENICHOST:
   112                 query_bytes = "-T dn,ace -C UTF-8 " + query
   112                 query_bytes = "-T dn,ace -C UTF-8 " + query
   113             elif hostname.endswith(NICClient.QNICHOST_TAIL) and many_results:
   113             elif hostname.endswith(NICClient.QNICHOST_TAIL) and many_results:
   114                 query_bytes = '='
   114                 query_bytes = '=' + query
   115             else:
   115             else:
   116                 query_bytes = query
   116                 query_bytes = query
   117             s.send((query_bytes) + b"\r\n")
   117             s.send((query_bytes) + b"\r\n")
   118             # recv returns bytes
   118             # recv returns bytes
   119             while True:
   119             while True: