equal
deleted
inserted
replaced
90 values = None |
90 values = None |
91 |
91 |
92 setattr(self, attr, values) |
92 setattr(self, attr, values) |
93 return getattr(self, attr) |
93 return getattr(self, attr) |
94 else: |
94 else: |
95 raise KeyError('Unknown attribute: %s' % attr) |
95 raise AttributeError('Unknown attribute: %s' % attr) |
96 |
96 |
97 def __str__(self): |
97 def __str__(self): |
98 """Print all whois properties of domain |
98 """Print all whois properties of domain |
99 """ |
99 """ |
100 return '\n'.join('%s: %s' % (attr, str(getattr(self, attr))) for attr in self.attrs()) |
100 return '\n'.join('%s: %s' % (attr, str(getattr(self, attr))) for attr in self.attrs()) |