mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:11:55 +02:00
Improve Account.repr() (#4325)
* Include more detail in Account's repr. In particular, regr and meta. * Fix test. * Review feedback. * Lint * Test prefix only.
This commit is contained in:
committed by
Brad Warren
parent
b0600483fd
commit
d54cb3c59d
+2
-1
@@ -74,7 +74,8 @@ class Account(object): # pylint: disable=too-few-public-methods
|
||||
self.meta.creation_dt), self.meta.creation_host, self.id[:4])
|
||||
|
||||
def __repr__(self):
|
||||
return "<{0}({1})>".format(self.__class__.__name__, self.id)
|
||||
return "<{0}({1}, {2}, {3})>".format(
|
||||
self.__class__.__name__, self.regr, self.id, self.meta)
|
||||
|
||||
def __eq__(self, other):
|
||||
return (isinstance(other, self.__class__) and
|
||||
|
||||
Reference in New Issue
Block a user