Fix mistake when copying the regex from the original
authorjoan <aseques@gmail.com>
Tue, 12 Dec 2017 23:36:45 +0100
changeset 153 45bafc43d45d
parent 152 f614365ab91b
child 154 7899fbfe9fe0
Fix mistake when copying the regex from the original
whois/parser.py
--- a/whois/parser.py	Tue Dec 12 23:33:49 2017 +0100
+++ b/whois/parser.py	Tue Dec 12 23:36:45 2017 +0100
@@ -370,7 +370,6 @@
             self['country'] = lines[-1]
 
 
-
 class WhoisName(WhoisEntry):
     """Whois parser for .name domains
     """
@@ -463,9 +462,9 @@
         'name_servers':                   'Name Server: *(.+)',  # list of name servers
         'created_by_registrar':           'Created by Registrar: *(.+)',
         'last_updated_by_registrar':      'Last Updated by Registrar: *(.+)',
-        'creation_date':                  'Domain Registration Date: *(.+)',
-        'expiration_date':                'Domain Expiration Date: *(.+)',
-        'updated_date':                   'Domain Last Updated Date: *(.+)',
+        'creation_date':                  'Creation Date: *(.+)',
+        'expiration_date':                'Registry Expiry Date: *(.+)',
+        'updated_date':                   'Updated Date: *(.+)',
     }
 
     def __init__(self, domain, text):
@@ -1326,6 +1325,6 @@
             raise PywhoisError(text)
         else:
             # Merge base class regex with specifics
-            self._regex.update(self.regex)
+            self._regex.copy().update(self.regex)
             self.regex = self._regex
             WhoisEntry.__init__(self, domain, text, self.regex)