Merged in soulmachine/pywhois (pull request #22)
authorRichard <richardbp@gmail.com>
Thu, 31 Aug 2017 22:10:29 +0000
changeset 134 3ff7f09ea24a
parent 132 7666f0765fe4 (diff)
parent 133 29e9190319e5 (current diff)
child 135 808c8bc803f5
Merged in soulmachine/pywhois (pull request #22) Added support for .ai domains
whois/parser.py
whois/whois.py
--- a/whois/parser.py	Tue Aug 29 23:09:05 2017 -0700
+++ b/whois/parser.py	Thu Aug 31 22:10:29 2017 +0000
@@ -34,6 +34,7 @@
     '%d.%m.%Y', 				# 2.1.2000
     '%Y.%m.%d',                 # 2000.01.02
     '%Y/%m/%d',                 # 2000/01/02
+    '%Y%m%d',                   # 20170209
     '%d/%m/%Y',                 # 02/01/2013
     '%Y. %m. %d.',              # 2000. 01. 02.
     '%Y.%m.%d %H:%M:%S',        # 2014.03.08 10:28:24
--- a/whois/whois.py	Tue Aug 29 23:09:05 2017 -0700
+++ b/whois/whois.py	Thu Aug 31 22:10:29 2017 +0000
@@ -127,7 +127,7 @@
             print('Socket Error:', socketerror)
 
         nhost = None
-        response = response.decode('utf-8', errors='replace')
+        response = response.decode('utf-8', 'replace')
         if 'with "=xxx"' in response:
             return self.whois(query, hostname, flags, True)
         if flags & NICClient.WHOIS_RECURSE and nhost is None: