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):
|
def can_fix(self, problem):
|
||||||
return isinstance(problem, NeedPgBuildExtUpdateControl)
|
return isinstance(problem, NeedPgBuildExtUpdateControl)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "%s()" % (type(self).__name__, )
|
||||||
|
|
||||||
def _fix(self, error, context):
|
def _fix(self, error, context):
|
||||||
logging.info("Running 'pg_buildext updatecontrol'")
|
logging.info("Running 'pg_buildext updatecontrol'")
|
||||||
self.session.check_call(["pg_buildext", "updatecontrol"])
|
self.session.check_call(["pg_buildext", "updatecontrol"])
|
||||||
|
|
|
@ -598,6 +598,9 @@ class AptResolver(Resolver):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "apt"
|
return "apt"
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "%s()" % (type(self).__name__, )
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_session(cls, session):
|
def from_session(cls, session):
|
||||||
return cls(AptManager.from_session(session))
|
return cls(AptManager.from_session(session))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue