# HG changeset patch # User joan # Date 1513118205 -3600 # Node ID 45bafc43d45dc7828d1f39c44c555aa4d40c8b42 # Parent f614365ab91b148f6e7c5adb972891b7c8a96d9c Fix mistake when copying the regex from the original diff -r f614365ab91b -r 45bafc43d45d 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)