mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Object printing improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user