Skip to content

Commit

Permalink
Make the print(api.dns_records(…)) output more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Aug 17, 2018
1 parent 799c952 commit d6d90ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nc_dnsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def __init__(self, hostname, type, destination, **kwargs):
def __str__(self):
return str(self.__dict__)

__repr__ = __str__

def __eq__(self, other):
if not isinstance(other, DNSRecord):
return False
Expand Down

0 comments on commit d6d90ee

Please sign in to comment.