Skip to content

Commit

Permalink
adjust the __repr__ in ApplyResult
Browse files Browse the repository at this point in the history
change the replacement field %s to {name} in __repr__ in ApplyResult, since this line uses format().
  • Loading branch information
xuxuman authored and auvipy committed Jul 24, 2023
1 parent 5030d32 commit cbe5a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions billiard/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,8 +1741,8 @@ def __init__(self, cache, callback, accept_callback=None,
cache[self._job] = self

def __repr__(self):
return '<%s: {id} ack:{ack} ready:{ready}>'.format(
self.__class__.__name__,
return '<{name}: {id} ack:{ack} ready:{ready}>'.format(
name=self.__class__.__name__,
id=self._job, ack=self._accepted, ready=self.ready(),
)

Expand Down

0 comments on commit cbe5a3f

Please sign in to comment.