whois/parser.py
changeset 85 0b098688af21
parent 84 98fe26cdbb71
child 89 0b2e70f3f537
equal deleted inserted replaced
84:98fe26cdbb71 85:0b098688af21
   133                             dayfirst=self.dayfirst,
   133                             dayfirst=self.dayfirst,
   134                             yearfirst=self.yearfirst)
   134                             yearfirst=self.yearfirst)
   135                     if value and value not in values:
   135                     if value and value not in values:
   136                         # avoid duplicates
   136                         # avoid duplicates
   137                         values.append(value)
   137                         values.append(value)
       
   138                 if values and attr in ('registrar', 'whois_server', 'referral_url'):
       
   139                     values = values[-1] # ignore junk
   138                 if len(values) == 1:
   140                 if len(values) == 1:
   139                     values = values[0]
   141                     values = values[0]
   140                 elif not values:
   142                 elif not values:
   141                     values = None
   143                     values = None
   142 
   144