add .br expire date, fix decode() takes no keyword arguments
authorJonatan Vianna <jonatan.vianna@gmail.com>
Sun, 27 Aug 2017 11:22:42 -0300
changeset 132 7666f0765fe4
parent 131 193a62737030
child 134 3ff7f09ea24a
add .br expire date, fix decode() takes no keyword arguments
whois/parser.py
whois/whois.py
--- a/whois/parser.py	Thu Aug 24 15:52:15 2017 +0000
+++ b/whois/parser.py	Sun Aug 27 11:22:42 2017 -0300
@@ -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	Thu Aug 24 15:52:15 2017 +0000
+++ b/whois/whois.py	Sun Aug 27 11:22:42 2017 -0300
@@ -126,7 +126,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: