equal
deleted
inserted
replaced
25 '%Y. %m. %d.', # 2000. 01. 02. |
25 '%Y. %m. %d.', # 2000. 01. 02. |
26 '%Y.%m.%d %H:%M:%S', # 2014.03.08 10:28:24 |
26 '%Y.%m.%d %H:%M:%S', # 2014.03.08 10:28:24 |
27 '%d-%b-%Y %H:%M:%S %Z', # 24-Jul-2009 13:20:03 UTC |
27 '%d-%b-%Y %H:%M:%S %Z', # 24-Jul-2009 13:20:03 UTC |
28 '%a %b %d %H:%M:%S %Z %Y', # Tue Jun 21 23:59:59 GMT 2011 |
28 '%a %b %d %H:%M:%S %Z %Y', # Tue Jun 21 23:59:59 GMT 2011 |
29 '%Y-%m-%dT%H:%M:%SZ', # 2007-01-26T19:10:31Z |
29 '%Y-%m-%dT%H:%M:%SZ', # 2007-01-26T19:10:31Z |
|
30 '%Y-%m-%dT%H:%M:%S%z', # 2013-12-06T08:17:22-0800 |
30 '%Y-%m-%d %H:%M:%SZ', # 2000-08-22 18:55:20Z |
31 '%Y-%m-%d %H:%M:%SZ', # 2000-08-22 18:55:20Z |
31 '%Y-%m-%d %H:%M:%S', # 2000-08-22 18:55:20 |
32 '%Y-%m-%d %H:%M:%S', # 2000-08-22 18:55:20 |
32 '%d %b %Y %H:%M:%S', # 08 Apr 2013 05:44:00 |
33 '%d %b %Y %H:%M:%S', # 08 Apr 2013 05:44:00 |
33 ] |
34 ] |
34 |
35 |
92 |
93 |
93 def __str__(self): |
94 def __str__(self): |
94 """Print all whois properties of domain |
95 """Print all whois properties of domain |
95 """ |
96 """ |
96 return '\n'.join('%s: %s' % (attr, str(getattr(self, attr))) for attr in self.attrs()) |
97 return '\n'.join('%s: %s' % (attr, str(getattr(self, attr))) for attr in self.attrs()) |
|
98 |
|
99 |
|
100 def __getstate__(self): |
|
101 """To support pickling |
|
102 """ |
|
103 return self.__dict__ |
|
104 |
|
105 def __setstate__(self, state): |
|
106 self.__dict__ = state |
97 |
107 |
98 |
108 |
99 def attrs(self): |
109 def attrs(self): |
100 """Return list of attributes that can be extracted for this domain |
110 """Return list of attributes that can be extracted for this domain |
101 """ |
111 """ |