mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Object printing improvements
This commit is contained in:
parent
b2c36f8527
commit
679101cfb0
1 changed files with 6 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ class Addr(common.Addr):
|
|||
|
||||
return parts
|
||||
|
||||
def __repr__(self):
|
||||
return "Addr(" + self.__str__() + ")"
|
||||
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
return (self.tup == other.tup and
|
||||
|
|
@ -126,6 +129,9 @@ class VirtualHost(object): # pylint: disable=too-few-public-methods
|
|||
"enabled: %s" % (self.filep, addr_str,
|
||||
self.names, self.ssl, self.enabled))
|
||||
|
||||
def __repr__(self):
|
||||
return "VirtualHost(" + self.__str__().replace("\n",",") + ")\n"
|
||||
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, self.__class__):
|
||||
return (self.filep == other.filep and
|
||||
|
|
|
|||
Loading…
Reference in a new issue