fixed recent domain implementations #72
authorRichard Penman
Thu, 27 Aug 2015 16:38:30 +0800
changeset 56 ff15b368adaf
parent 55 bc23472ae284
child 57 1f14b45214eb
fixed recent domain implementations #72
whois/parser.py
--- a/whois/parser.py	Thu Aug 13 12:14:23 2015 +0800
+++ b/whois/parser.py	Thu Aug 27 16:38:30 2015 +0800
@@ -713,8 +713,8 @@
 
 
 class WhoisBg(WhoisEntry):
-    """Whois parser for .bg domains"""
-
+    """Whois parser for .bg domains
+    """
     regex = {
         'expiration_date': 'expires at:\s*(.+)',
     }
@@ -728,17 +728,9 @@
             WhoisEntry.__init__(self, domain, text, self.regex)
 
 
-class WhoisRf(WhoisRu):
-
-    """Whois parser for .rf domains
+class WhoisDe(WhoisEntry):
+    """Whois parser for .de domains
     """
-    def __init__(self):
-        super(WhoisRf, self).__init__()
-
-
-class WhoisDe(WhoisEntry):
-    """Whois parser for .de domains"""
-
     regex = {
         'name': 'name:\s*(.+)',
         'org': 'Organisation:\s*(.+)',
@@ -758,8 +750,8 @@
 
 
 class WhoisBe(WhoisEntry):
-    """Whois parser for .be domains"""
-
+    """Whois parser for .be domains
+    """
     regex = {
         'name': 'Name:\s*(.+)',
         'org': 'Organisation:\s*(.+)',
@@ -808,15 +800,13 @@
 
 
 class WhoisSu(WhoisRu):
-
     """Whois parser for .su domains
     """
-    def __init__(self):
-        super(WhoisSu, self).__init__()
+    def __init__(self, domain, text):
+        WhoisRu.__init__(self, domain, text)
 
 
 class WhoisClub(WhoisEntry):
-
     """Whois parser for .us domains
     """
     regex = {
@@ -896,8 +886,8 @@
 
 
 class WhoisIo(WhoisEntry):
-
-    """Whois parser for .io domains"""
+    """Whois parser for .io domains
+    """
     regex = {
         'status':           'Status\s*:\s*(.+)',
         'name_servers':     'NS \d?\s*:\s*(.+)',
@@ -914,21 +904,23 @@
             WhoisEntry.__init__(self, domain, text, self.regex)
 
 
-class WhoisBiz(WhoisEntry):
-
-    """Whois parser for .biz domains"""
-
+class WhoisBiz(WhoisUs):
+    """Whois parser for .biz domains
+    """
     def __init__(self, domain, text):
-        super(WhoisUs, self).__init__(domain, text)
+        WhoisUs.__init__(self, domain, text)
 
 
 class WhoisMobi(WhoisMe):
-
+    """Whois parser for .mobi domains
+    """
     def __init__(self, domain, text):
-        super(WhoisMobi, self).__init__(domain, text)
+        WhoisMe.__init__(self, domain, text)
 
 
 class WhoisKg(WhoisEntry):
+    """Whois parser for .kg domains
+    """
     regex = {
         'domain_name':                    'Domain\s*([\w]+\.[\w]{2,5})',
         'registrar':                      'Domain support: \s*(.+)',
@@ -949,6 +941,3 @@
             raise PywhoisError(text)
         else:
             WhoisEntry.__init__(self, domain, text, self.regex)
-
-
-