Add __repr__.
This commit is contained in:
parent
42724a74a8
commit
c38e32516f
2 changed files with 6 additions and 0 deletions
|
@ -507,6 +507,9 @@ class PgBuildExtOutOfDateControlFixer(BuildFixer):
|
|||
def can_fix(self, problem):
|
||||
return isinstance(problem, NeedPgBuildExtUpdateControl)
|
||||
|
||||
def __repr__(self):
|
||||
return "%s()" % (type(self).__name__, )
|
||||
|
||||
def _fix(self, error, context):
|
||||
logging.info("Running 'pg_buildext updatecontrol'")
|
||||
self.session.check_call(["pg_buildext", "updatecontrol"])
|
||||
|
|
|
@ -598,6 +598,9 @@ class AptResolver(Resolver):
|
|||
def __str__(self):
|
||||
return "apt"
|
||||
|
||||
def __repr__(self):
|
||||
return "%s()" % (type(self).__name__, )
|
||||
|
||||
@classmethod
|
||||
def from_session(cls, session):
|
||||
return cls(AptManager.from_session(session))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue