mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Object printing improvements
This commit is contained in:
@@ -85,6 +85,9 @@ class Addr(common.Addr):
|
|||||||
|
|
||||||
return parts
|
return parts
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "Addr(" + self.__str__() + ")"
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
if isinstance(other, self.__class__):
|
if isinstance(other, self.__class__):
|
||||||
return (self.tup == other.tup and
|
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,
|
"enabled: %s" % (self.filep, addr_str,
|
||||||
self.names, self.ssl, self.enabled))
|
self.names, self.ssl, self.enabled))
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "VirtualHost(" + self.__str__().replace("\n",",") + ")\n"
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
if isinstance(other, self.__class__):
|
if isinstance(other, self.__class__):
|
||||||
return (self.filep == other.filep and
|
return (self.filep == other.filep and
|
||||||
|
|||||||
Reference in New Issue
Block a user